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



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

Answer / Rakesh Priya

You can apply a style to an element in jQuery by using the css() method. Here's an example: `$('#myElement').css('color', 'red')`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

In what situation you would use multiple version of jQuery and how would you include them?

1 Answers  


Which one is more efficient, document.getelementbyid( "idname") or $("#idname)?

1 Answers  


Difference between parent() and parents() in jQuery?

1 Answers  


What is called chaining?

1 Answers  


Tell me how to use migrate jquery plugin if possible? : jquery mobile

1 Answers  


Why do we use jQuery?

1 Answers  


How can we apply css in last child of parent using jquery library?

1 Answers  


How to get the current offset of the first matched element, in pixels, relative to the document using ?

1 Answers  


What is cdn? Explain

1 Answers  


What is jquery.holdready() function?

1 Answers  


What is the basic requirement to start with the jquery?

1 Answers  


Differentiate between jquery.size and jquery.length? : jQuery Mobile

1 Answers  


Categories