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?

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

Answer: B) text()

Explanation:

The jQuery DOM method text() is used to set or return the text content of selected elements.

Comments and Discussions!

Load comments ↻






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