Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | jQuery Quiz | Set-3 | Question 6

  • Last Updated : 20 Sep, 2021

If you want to add the classes or remove the classes in the CSS which of the following jQuery method is Used?
(A) toggleClass()
(B) switch()
(C) altClass()
(D) switchClass()


Answer: (D)

Explanation: SwitchClass() in jQuery is used to add the classes or remove the classes in the CSS while animating the class. switchClass() method which helps the programmers to switch from one CSS class to another along with managing the transition from one state to another in a smooth manner.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!