We have a problem in IE with some users where the onclick event does not work:
<button type="button" id="btnSomething" name="btnSomething" onClick="myFunction();">Continue</button>
After digging on the net, people suggested using jQuery.click for browser compatibility.
So, I tried the following:
<script type="text/javascript">$('#btnSomething').click(function(){myFunction();});</script>
This does not work, I tried adding to alert ('test'); but it is also not caused. If that matters, I did not delete onClick = "myFunction ();" from the button element, simply adding the above JS directly after the button in the HTML file.
source
share