Posts by Alberto Labuto • 1 point
1 post
-
0
votes2
answers130
viewsA: How to place 2 events. click() on a button
You can check if there is a class active with hasClass. If it exists, remove it with removeClass. And if it doesn’t exist, add it with addClass. $(".dashboard-button").click(function(){ if…