I’m unsure of the syntax for multiple selection. What I mean by that is taking your standard click element function:
$("#target").click(function () {});
which means if #target is clicked then do function
and making it mean if #target or #target2 or #target3 is clicked then do function
or if #target1 and #target2 are hovered over, then do function
I know I can just do a click function for each one but that seems like a waste of space, so how would I code that more concisely?
Thanks.
Put them all in one selector, separated by a comma: