Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nameTimer;
- var companyTimer;
- $("#name").keyup(function() {
- clearTimeout(nameTimer);
- nameTimer = setTimeout(function() {
- $("#name").val(CapStr($("#name").val()));
- }, 500);
- });
- $("#company").keyup(function() {
- clearTimeout(companyTimer);
- companyTimer = setTimeout(function() {
- $("#company").val(CapStr($("#company").val()));
- }, 500);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement