Answers for "jquery on multiple events"

4

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
1

jquery on multiple events

$('.classElement').on('focusout change', function(e) {
    // Your code
});
Posted by: Guest on October-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language