I have a little question, is there any option to detect clicks interval and set for them any condition. For example if i click one by one in one second interval i can do something, and if i click again after 0.5s i can make something else? I have no idea how to write this so i can’t add any example on my code only this vision, also i can’t find this solution in other therds, can you help me?
var clicks=0;
function myClickFunction(event){
clicks++;
}
$(function(){
$("#something").on("click",myClickFunction);
if (click == )){
}
});
});
Much thx for answer!
This is a quick way to do it, but creates some globals. It should put you on the right path though!
A switch might help you keep track of all the different cases you want.