JQuery Events
Events in Jquery are exactly like vanillaJS, though the syntax is a bit different. There is no addEventListener function. The event is attached to the selected element directly. Inside as always we define the callback function.
Find all types of events here!