How we can modify the css class in jquery?
Answer / Mandeep Kumar Srivastava
To modify a CSS class using jQuery, you can use .addClass() and .removeClass(). Here's an example:
```javascript
$(document).ready(function(){
$('.example').click(function(){
$(this).toggleClass('myClass');
});
});
```
| Is This Answer Correct ? | 0 Yes | 0 No |
What does dollar sign ($) means in jquery? : jquery mobile
What is a cdn? : jQuery Mobile
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
What is the use of .size() method in jquery?
What are the types of selectors in jQuery?
Differentiate between width() vs css(‘width’) in jquery
What is a filter in jquery? Explain
How to use jquery?
Define url paremeter of jquery ajax method?
What methods used to provide effects?
Why there are two different version of jQuery library?
Why do we use jquery? : jquery mobile