I am running jQuery 1.9.1 and I want to trigger the same code on two events:
$("#myForm").submit(function() {
alert("Same code here ...");
});
$("#mySelect").change(function() {
alert("Same code here ...");
});
I were looking in to the "on" method but as far as I can see, it cannot trigger on two events with separate ID's?