I cant get .change() to work with an input in Internet Explorer 9. It works in all other browsers (that I’ve tried) but not IE 9.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('.myInput').change(function () {
alert("hi");
});
});
</script>
<input class="myInput" />
</body>
</html>
Any ideas?
Sorry guys. Just as you said it DOES work. The problem was that I also had a validate script on the input with a regualar expression that didn’t work in IE9 (but in IE8).
Big thank you though…