jQuery multiple events to trigger the same function


$('#element').on('keyup keypress blur change', function(e) {
    // e.type is the type of event fired
});


Reference:
https://stackoverflow.com/questions/2534089/jquery-multiple-events-to-trigger-the-same-function


Article ID: 39
Created On: Mon, Sep 28, 2020 at 12:09 PM
Last Updated On: Mon, Sep 28, 2020 at 12:09 PM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/jquery-multiple-events-to-trigger-the-same-function-39.html