Home »
MCQs »
jQuery MCQs
Which jQuery DOM method is used to set or return the text content of selected elements?
58. Which jQuery DOM method is used to set or return the text content of selected elements?
- content()
- text()
- html()
- val()
Answer: B) text()
Explanation:
The jQuery DOM method text() is used to set or return the text content of selected elements.