Posts by Vinicius Alves • 1 point
1 post
-
0
votes4
answers704
viewsA: How to add a new style to an html element?
To have an on and off effect $(document).ready(function() { var toggle = true; $("span:first").on("click", function() { if(toggle == true){ $("b").css("display","none"); toggle = false; }else{…