Which method is used to add CSS class to the selected elements?

76. Which method is used to add CSS class to the selected elements?

  1. add()
  2. addClass()
  3. addClasses()
  4. AddClasses()

Answer: B) addClass()

Explanation:

The jQuery method addClass() is used to add CSS class to the selected elements.

Comments and Discussions!

Load comments ↻






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