logo-MindMajix
PostjQueryjQuery
S
Satish santu

Posted on 25th May 2024|66 views

0
votes
Jquery On Multiple Events

example of jquery on multiple events?

I want to call four events like change, keyup, blur and keypress which call the same function in one line? Can anyone tell me..

 

1 answers
Answers
P
Harshel Mike

Posted on 25th May 2024| views

To call multiple events we can simply use .on() just use the below statement

$('#element').on('change keyup blur keypress', function(e) {

});

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number