Home »
MCQs »
jQuery MCQs
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?
- add()
- addClass()
- addClasses()
- AddClasses()
Answer: B) addClass()
Explanation:
The jQuery method addClass() is used to add CSS class to the selected elements.