Which jQuery DOM method is used to set or return the value of form fields?

60. Which jQuery DOM method is used to set or return the value of form fields?

  1. content()
  2. text()
  3. html()
  4. val()

Answer: D) val()

Explanation:

The jQuery DOM method val() is used to set or return the value of form fields.

Comments and Discussions!

Load comments ↻






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