Question and answer is powered by AnsPress.io
In my HTML web page I want to add some class name into a HTML element using jQuery.
How can I add class in HTML element using jquery?
Add more class in a HTML element using jQuery.
Follow this example code, I hope it will be helpful for you.
Example code:
<script type="text/javascript"> $("#Published_nav").addClass("active show"); </script>