Jquery Change event for input and select elements

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-04-29T09:55:14Z Indexed on 2010/04/29 9:57 UTC
Read the original article Hit count: 211

Filed under:
|

Hello all,

I am trying to alert something when ever a drop down box changes and when ever something is typed into an input. I don't think I can use change for input fields? What would you use for input fields? Also, what about input fields of type file? Same thing. Here is what I have so far and its not working:

    $('input#wrapper, select#wrapper').change(function(){

        alert('You changed.');

    });

Thanks all

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery