What is the use of css() method in jquery?



What is the use of css() method in jquery?..

Answer / Rajeev Shankhdhar

The .css() method allows you to get or set the style property of one or more selected elements. For example, $('selector').css('color', 'red'); sets the color of the selected element(s) to red.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

List the advantages of jquery?

1 Answers  


Can we use protocol less URL while referencing jQuery from CDNs?

1 Answers  


How is the deferred method in jquery important in relation to animate method?

1 Answers  


Name some of the methods of jquery used to provide effects?

1 Answers  


Tell me how to disable jquery animation? : jquery mobile

1 Answers  


Is it possible to use other client side libraries like MooTools, Prototype along with jQuery?

1 Answers  


How to check if number is numeric while using jquery 1.7+? : jquery mobile

1 Answers  


Tell me how to executed jquery selectors? : jquery mobile

1 Answers  


How can jquery library be added to pages?

0 Answers  


How to check variable is empty or not in jquery?

1 Answers  


How can we show and hide an element via jquery?

1 Answers  


What is the difference between event.stopPropagation and event.stopImmediatePropagation?

1 Answers  


Categories