Today I was writing code that is running code if a person clicks a checbox.
I wrote the code like this:
$(".checkbox").on( "click", function() {
//code
});
I could also write the code like this:
$(".checkbox").on( "change", function() {
//code
});
Both achieve the same end I am looking to achieve but should I use one over the other?