What is an Event?
In programming, multiple threads can communicate with each other by signalling events and handling events . An event, then, is like a message from one thread to another. Events can be user actions, such as clicking a mouse button or pressing a key, or system occurrences, such as running out of memory. Typically, events are handled synchronously with the program flow, that is, the software may have one or more dedicated places where events are handled, frequently an event loop. An event-driven application is a computer program that is written to respond to actions generated by the user or the system.
The jQuery library provides methods to handle DOM events. Most jQuery methods correspond to native DOM events . jQuery event method registers an event handler when the user interacts with the web pages. This means that you can write code that runs when a user clicks on a certain part of the page, or when she moves her mouse over a form element. We can make any manipulations on the selected element after registering the event handler.