What are Events?

Event is action that user can perform by keyboard and mouse

Here is commonly used jQuery event methods

  • click() - the function is executed when the user clicks on the HTML element
  • dblclick() - the function is executed when the user double-clicks on the HTML element
  • mouseenter() - function is executed when the mouse pointer enters the HTML element
  • mouseleave() - function executed when the user leaves the mouse pointer
  • mousedown() -function is executed when the user presses the mouse down
  • mouseup() - function executed when the user presses the mouse key upwards
  • hover() - function executed when hover in the html element this is a combination of mouseenter() and mouseleave() methods.
  • focus() - function executed when the form field receives focus
  • blur() - function is executed when the form field loses focus