Which method is used to attach an event handler function to an HTML element when the form field gets focus?

35. Which method is used to attach an event handler function to an HTML element when the form field gets focus?

  1. focused()
  2. focuses()
  3. focuselement()
  4. focus()

Answer: D) focus()

Explanation:

The jQuery method focus() is used to attach an event handler function to an HTML element when the form field gets focus.

Comments and Discussions!

Load comments ↻






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