Post

jQueryjQuery

S
Satish santu

Posted on 18th April 2024|65 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..

 

Answers
P
Harshel Mike

Posted on 18th April 2024

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