How can we apply css in div using jquery?
Answer / Nishant Kumar
To apply CSS to a div using jQuery, you can use the .css() method. Here's an example:
```javascript
$('#myDiv').css('color', 'red'); // Change color of #myDiv to red
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Which is fast document.getElementByID('txtName') or $('#txtName').?
What is the use of queue() in jquery?
Explain jquery $.ajax() method?
How you will use jquery means requirement needed for using jquery.
How to multiple version of jQuery?
Which version of jquery file should be used?
Is it possible to use other client side libraries like MooTools, Prototype along with jQuery?
List the advantage of using minimized version of jquery?
What is the difference between the id selector and class selector in jquery?
How to get the style property of an element using ?
Tell me how to check data type of any variable in jquery? : jquery mobile
How to delete cookies in jquery?