Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 13th, 2013  |  syntax: None  |  size: 0.90 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $(document).ready(function () {
  2.     $('#buttonDelay').click(function() {
  3.         var delay =  $(this);
  4.         delay.addClass('inactive');
  5.         delay.prop('disabled', true);
  6.         setTimeout(function() {
  7.             delay.prop('disabled', false);
  8.         }, 8000).removeClass('inactive');                      
  9.     });
  10. });
  11.        
  12. $(document).ready(function () {
  13.     $('#buttonDelay').click(function() {
  14.         var delay =  $(this);
  15.         delay.prop('disabled', true).addClass('inactive')
  16.         setTimeout(function() {
  17.             delay.prop('disabled', false).removeClass('inactive');
  18.         }, 8000);
  19.     });
  20. });
  21.        
  22. $(document).ready(function () {
  23. $('#buttonDelay').click(function() {
  24.     var delay =  $(this);
  25.     delay.addClass('inactive');
  26.     delay.prop('disabled', true);
  27.     setTimeout(function() {
  28.         delay.prop('disabled', false).removeClass('inactive');
  29.     }, 8000);                      
  30. });
  31. });