JQuery.on () not working
I have the following:
<input type="submit" id="submit" value="Submit" />
Inside jQuery, I have the following:
<script type="text/javascript"> $(document).ready(function () { $("#submit").on("click", function () { alert('test'); }); }); </script>
This does not work. I am using IE9.
Can anyone find out which version of jQuery supports .on()
?
I came across this using IE9 in compatibility mode. Please note: I had no problems using IE9 in normal mode.
I was able to do a more thorough QA for the site I just launched (time did not allow a lot of cross-browser testing, except for using the screenshot service). Change $ ("something"). On ("click" ...) to $ ("something"). Click () fixed the problem.