1.

Which method is not used for CSS manipulation?(a) toggleClass()(b) removeClass()(c) beforeClass()(d) css()I have been asked this question in unit test.This interesting question is from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right option is (C) beforeClass()

The best explanation: There are several functions for CSS manipulation. Some of them are css(), removeClass(), toggleClass(), addClass(). The style attribute is returned by css() METHOD. Classes are added by addClass() method. Classes are removed by removeClass() method. The toggling between adding and removing classes is ACHIEVED by toggleClass() method.



Discussion

No Comment Found

Related InterviewSolutions