Home » Categories » jQuery

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 Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
Hidden image after redirect by check filename
Viewed 822 times since Wed, Sep 30, 2020
How to get Response Header location from jQuery Get?
Viewed 923 times since Wed, Sep 30, 2020
Attribute Contains Selector [name*=”value”]
Viewed 1046 times since Wed, Sep 30, 2020
How to apply style to parent if it has child with CSS?
Viewed 741 times since Thu, Oct 8, 2020