Answers for "jquery multiple on click events"

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

jquery onclick multiple buttons

$('#b1, #b2, #b3').click(function(){
})
Posted by: Guest on February-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language