I have a function that I would like to do whenever the user clicks on one of the anchor elements, for example
$('.element').on('click', function(){
});
and I want to do the same if the select element changed its value, for example
$('select').on('change', function(){
});
I know what I could do
$('.element', 'select').on('click change', function(){
});
but it also works whenever I click on the select element, and I don't want to confuse the user and do something only when the value of the select element has changed.
source
share