SyntaxFix
Write A Post
Hire A Developer
Questions
Combine JS & CSS :
button{ /* 1st state */ } button:hover{ /* hover state */ } button:active{ /* click state */ } button.active{ /* after click state */ } jQuery('button').click(function(){ jQuery(this).toggleClass('active'); });