Posts by Dihgg • 31 points
1 post
-
3
votes4
answers330
viewsA: Problem with functions being performed multiple times
you can add a class to the element in the click, and check if this class exists $('#test-btn').on('click', function(){ if(!$('#test').hasClass('fadding')){…
javascriptanswered Dihgg 31