Advertisement
benshepherd

Untitled

Oct 29th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.44 KB | None | 0 0
  1.         var nameTimer;
  2.         var companyTimer;
  3.        
  4.         $("#name").keyup(function() {
  5.            
  6.             clearTimeout(nameTimer);
  7.            
  8.             nameTimer = setTimeout(function() {
  9.                
  10.                 $("#name").val(CapStr($("#name").val()));
  11.                
  12.             }, 500);
  13.         });
  14.         $("#company").keyup(function() {
  15.            
  16.             clearTimeout(companyTimer);
  17.            
  18.             companyTimer = setTimeout(function() {
  19.                
  20.                 $("#company").val(CapStr($("#company").val()));
  21.                
  22.             }, 500);
  23.            
  24.         });
  25.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement