Saturday, June 16, 2012

How to Override click event using jQuery


If let's say control has click event attached and you don't have code to change or override click event, here is the solution for that

OOB Code Snippet:

onclick="javascript:SelectUserImage()
;return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$PlaceHolderMain$ctl12", "", true, "", "", false, true))" type="button" value="Choose Picture"/>
Now if you want to override click event, use given code to achieve it.




It will only call our function (alert message only).

No comments:

Post a Comment