I want call OnClick function on page load with out user clicking. Can we do that in jQuery or javascript?
<input name="ctl00$PlaceHolderMain$ButtonSection$RptControls$BtnSubmit"
class="ms-ButtonHeightWidth"
id="ctl00_PlaceHolderMain_ButtonSection_RptControls_BtnSubmit"
accessKey="o" onclick="javascript:WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions("ctl00$PlaceHolderMain
$ButtonSection$RptControls$BtnSubmit",
"", true, "", "", false, true))"
type="button" value="OK"/>
This will trigger the
clickevent on the element with the suppliedid, and it will run when the document is fully loaded.