how to make the function work only after click button for one second?
eg
$("#button").click(function(){
$(".panel").addClass('flip');
I want 'flip'
only if the button is pressed for 1 second. if you click on it for less than a second it does not 'flip'
Please suggest.