Open In App

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

Last Updated : 20 Sep, 2021
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads