What other event types does the .on() method take (besides 'click')?


#1

Question

What other event types does the .on() method take (besides 'click')?

Answer

jQuery uses the same event types that JavaScript uses. This includes commonly used keyboard events like keydown and keyup and mouse events like click, mouseenter, mouseleave, and mouseover.