In the following code: <html><head> <script type="text/javascript" src="jquery.js"></script> <script> $(document).ready(function() { $('#theinput').change(function(){ $(this).val('something else'); alert('hello'); }); }); </script> </head><body><form> <input type="text" id="theinput" name="theinput"> </form></body></html>
On first try, when I enter the text 'something' and click outside the input, the 'change' event will fire and change the text to 'something else'. On second try (IE only), when I enter the text 'something' (same as before), the 'change' event does not fire. Why?