Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

jQuery Select onChange

I know there is a simple answer to this but I'm not 100% on the syntx.

I have a function that I want to run if any <select> on the page is changed.

<script>
var= myFunction = function() {
//  Do Stuff  //
};

$(document).ready(function() {
ANY select.onChange(myFunction);
});
</script>

Open in new window

Avatar of erikTsomik
erikTsomik
Flag of United States of America image

Here we go

$(document).ready(function() {
    $("#IDhere").change(function(){

   })
})
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial