Answers for "jquery bind click event to multiple elements"

10

jquery bind function to multiple events

$('#element').on('keyup keypress blur change', function(e) {
    // e.type is the type of event fired
});
Posted by: Guest on December-29-2020
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
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

Code answers related to "jquery bind click event to multiple elements"

Code answers related to "Javascript"

Browse Popular Code Answers by Language