Home »
MCQs »
jQuery MCQs
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?
- content()
- text()
- html()
- val()
Answer: D) val()
Explanation:
The jQuery DOM method val() is used to set or return the value of form fields.