Which jQuery DOM method is used to insert content at the beginning of the selected elements?

65. Which jQuery DOM method is used to insert content at the beginning of the selected elements?

  1. insert()
  2. before()
  3. append()
  4. prepend()

Answer: D) prepend()

Explanation:

The jQuery DOM method prepend() is used to insert content at the beginning of the selected elements.

Comments and Discussions!

Load comments ↻






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