Answers for "same click event in multiple elements in on event"

1

same click event in multiple elements in on event

$(document).on("click touchend", ".class1, .class2, .class3", function () {
     //do stuff
});
Posted by: Guest on February-17-2021
5

can you have multiple onclick events

<input type="button" value="test" onclick="Hey(); Ho();" />
Posted by: Guest on February-01-2021

Code answers related to "same click event in multiple elements in on event"

Code answers related to "Javascript"

Browse Popular Code Answers by Language