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
Post a Comment