Event type property in jQuery

event.type. Name of the event that has occurred

In the following example, the color of a button will be changed according to the type of event that happens on it.

  • click(). When I do single mouse click inside an element.
  • mouseover(). When the mouse enters an element. Refers to the element and its children.
  • mouseout(). When the mouse leaves an element. Refers to the element and its children.
Comments

PHP Captcha


Interesting Articles