How do I limit Interval time between 2 clicks in jQuery?
$('button').click(function(){
// do some stuff
}
After the first click, how do I wait one second, then the next click will effect. thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems like you are looking for a way to throttle the clicks. Have a look at the jQuery throttle/debounce plugin by Ben Alman.