Skip to content
Related Articles
Open in App
Not now

Related Articles

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

Improve Article
Save Article
  • Last Updated : 20 Sep, 2021
Improve Article
Save Article

If you want to add or remove CSS classes 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
Related Articles

Start Your Coding Journey Now!