jQuery change() Method
jQuery change() Method
The change event occurs when the value of an element has been changed. It works on textarea, select, and input elements. The change() method is used to trigger the change event. We can attach a function to it when a change event occurs.
Syntax:-
Its syntax is:- $(selector).change(function)
Further Explanation:-
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the change event occurs |