I'd like to accomplish what is being done here except with one twist: I want each event to target different elements.
The use case is a select box that should fire an event if anything but the first "choose your option" option is selected
$(document).on('change', 'select:nth-child(1)', function(e) ){
do_stuff();
});
$(document).on('click', 'select:not(:first-child)', function(e) ){
do_stuff();
});
Is there a combined, cleaner way to do this, without having to create do_stuff()
?
How can this be done without the event firing twice?