As opposed to this question, here I am asking if it's possible to do something like this:
$(several different selectors).click(function() {
console.log("Click");
});
So if I have something like this:
<div id="a">A</div>
<div id="b">B</div>
<div id="c">C</div>
I want to make several different selectors
select #a
, #b
and #c
, and then whichever one I click would log "Click". I tried $('#a', "#b", "#c")
and it doesn't work; can someone help?