Which method is used to attach an event handler function to an HTML element on mouse click?

28. Which method is used to attach an event handler function to an HTML element on mouse click?

  1. click()
  2. Click()
  3. dblclick()
  4. DblClick()

Answer: A) click()

Explanation:

The jQuery method click() is used to attach an event handler function to an HTML element on mouse click.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.