JQuery Programmer Question:

How can you apply a style on an element using jQuery?

JQuery Programmer Interview Question
JQuery Programmer Interview Question

Answer:

The addClass( classes ) method can be used to apply defined style sheets onto all the matched elements. You can specify multiple classes separated by space.


Previous QuestionNext Question
Give an example of closure?How to reduce the set of matched elements to a single element using jQuery?