I have a form where the class of the button is dynamically changing, depending up where the request is coming from. I am trying to capture the onclick event, but it does not tak
I fixed the problem using the delegate method provided by JQuery.
$('body').delegate('.newClass','click', delegatefunction); function hasClass() { alert("Hello!!"); }
Thanks for the help.