jquery code with [id*=btnSubmit] -


protected void page_load(object sender, eventargs e) {     if(!ispostback)     {      string script = "$(document).ready(function () { $('[id*=btnsubmit]').click(); });";                 clientscript.registerstartupscript(this.gettype(), "load", script, true);     }      // more stuff... } 

can please explain jquery code doing. confused part :

string script = "$(document).ready(function () { $('[id*=btnsubmit]').click(); });"; 

when page loaded

$(document).ready(function ()  

apply click event buttons id contains string btnsubmit

 $('[id*=btnsubmit]').click(); 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -