Answers for "how to add the click event into two element in jquery"

0

how to add the click event into two element in jquery

$('.class1').add('.class2').on('click', some_function);
Posted by: Guest on January-29-2021
0

how to add the click event into two element in jquery

$('.class1, .class2').on('click', some_function);
Posted by: Guest on January-29-2021

Code answers related to "how to add the click event into two element in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language