Click.toggle add / remove class
1 answer
Use the function toggleClass
:
$("#tool").click(function() {
$("#drill").toggleClass("spanner");
});
+7
a source to share