Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

execute only once on multiple clicks javascript

function nextStep() {
  var $div = $(".test");
  if (!$div.data('lockclick') || +new Date() - $div.data('lockclick') > 1200) {
    console.log("NEXT");
  }
  $div.data('lockclick', +new Date());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #execute #multiple #clicks #javascript
ADD COMMENT
Topic
Name
8+1 =