same click function for multiple elements javascript code example
Example: same click event in multiple elements in on event
$(document).on("click touchend", ".class1, .class2, .class3", function () {
//do stuff
});
$(document).on("click touchend", ".class1, .class2, .class3", function () {
//do stuff
});