I have some html code that I want to toggle a class when the div is clicked. Can anyone help me with this? I want to add a on/off to my class when the div is clicked.
- <div class="cat-toggle">
- <div class="toggle-inner"></div>
- </div>
I need to add the on or off class to the cat-toggle based on the current state when the user clicks on it.