What is the .on() method in jQuery?


#1

Question

What is the .on() method in jQuery?

Answer

The .on() method in jQuery attaches an event handler, which is the event listener plus the callback function, to the selected element(s).


FAQ: Mouse Events - Introduction to Mouse Events