- Home
- jQuery: .change() vs .on()
jQuery: .change() vs .on()
Refresh on the basic usage of .change(), .on(), .is(), .prop() in jQuery.
Example 1
.attr() vs .prop() vs .is()
Result:
Example 2
The above is using .change() it’s a shorthand of .on() and the above can be done this way.
Result:
Example 3
Result