Use Jquery to Change CSS Class

Jquery is really a powerful script. You can use this to add or remove class name of a CSS declaration.

To do this, you need to have the jquery script first. The code may vary depending on the latest version.

After this, you can insert the following code:

You now have replaced the class name “blue” with “green”

Leave a Reply

Your email address will not be published. Required fields are marked *