Match the following methods for working with the class attribute defined by jQuery with their definitions.i) addClass() a) tests for the presence of specified classii) toggleClass() b) adds classes to elements that don’t already haveiii) hasClass() c) remove classes from selected elementsiv) removeClass() d) adds classes from selected elements

🎲 Try a Random Question  |  Total Questions in Quiz: 15  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Practice Test: JQuery Library — practice the complete quiz, review flashcards, or try a random question.


Match the following methods for working with the class attribute defined by jQuery with their definitions.<br>i) addClass()           a) tests for the presence of specified class<br>ii) toggleClass()      b) adds classes to elements that don’t already have<br>iii) hasClass()          c) remove classes from selected elements<br>iv) removeClass()   d) adds classes from selected elements