I have two separate scripts that essentially do the same thing. I built them over time and just discovered that I am using a couple of different tools to achieve the same result.
I want to standardize and use best practice in both cases.
One way to check for a change event:
$('input[name="status"]').change(function() {});
Another way that I test the change event is as follows:
$("#email").bind("change", function(e) {});
Which way is better? What is the difference between 2?
Thank you for helping me to understand it.
jquery onchange
H. Ferrence Apr 03 2018-12-12T00: 00Z
source share