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

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

  1. blur()
  2. leave()
  3. focusleave()
  4. leavefocus()

Answer: A) blur()

Explanation:

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

Comments and Discussions!

Load comments ↻






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