JQuery filter html content using keydown, mouseenter, mouseleave and includes

This web example will try to filter people's names through a search engine using the jquery functions keydown and includes. In addition, hovering the mouse over the names will change the color by using the jquery functions mouseenter, mouseleave and prop.
The web site consists of a search engine style input where you can add a name that will filter the existing names in the table below. The table will consist of the list of names.

  • The keydown() function is an event that occurs when a user presses a key on the keyboard.
  • The includes() function performs a search on a selected string for a chosen value, case sensitive, and returns true or false as appropriate.
  • The val() function gets the values of elements such as input, select and textarea.
  • The addClass() function adds one or more class names, or an array of classes to the selected element.
  • The prop() function sets or returns properties and values to selected html elements.
  • The mouseenter() function is an event that is triggered when the mouse is moved over the selected element.
  • The mouseleave() function is an event that is triggered when the mouse exits a selected element.
Comments

PHP Captcha


Interesting Articles