Jquery trigger when input changes not works

mkhaweallil

New Member
I am trying to use Jquery to trigger the event when user change the value in my input.It is supposed to be fairly easy, however, I tried all the ways but none of them works for me.Here is my HTML:\[code\]<input id="size" type="text" name="Size[mm]" style="width:40px; margin-top:5px; padding-left:10px;" value="http://stackoverflow.com/questions/12792220/1.00" maxlength="6" size="10">\[/code\]Here are my jQuery:I tried:\[code\]<script>$('#size').bind('keyup mouseup change',function(){ alert('Yeah!');});</script>\[/code\]And\[code\]<script>$("input#size").change(function(){ alert('Yeah!');}).change(); </script>\[/code\]And\[code\]<script>$("#size").change(function(){ alert('Yeah!');});</script>\[/code\]However, none of these works and nothin happens in my Firebug..Any ideas?Thanks
 
Back
Top