delay keyup using ajax call
hi i need some help with delaying keyup on an ajax call.
i have 4 input boxes within the html which generates a price - it's all working as it should be i cannot enter 10 for example as ajax is triggered to update the price as soon as i enter 1.
this is my code.
- $("#ajaxform").bind('rightnow change keyup', function(e) {
- $.ajax({
- type: "POST",
- url: "<?php echo ROOT; ?>ajax.php",
- data: $('#ajaxform').serialize(),
- success: function(html) {
- $("#ajaxresults").html(html).show();
- }
- });
- })
- .triggerHandler("rightnow");
- });