How to attach change event to an element in jQuery – .change()

To attach change event to an element, change() method can be used that fires when the element value is changed.

$("#dropChange").change(function () {
alert("change handler called");

Above code will execute when user changes the value of the DropDown whose id is “dropChange”.

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.