I have a textarea where people enter some text (naturally), and I want to make it so that an AJAX request is made every now and then to get some suggestions regarding what t
If you are using lodash.js (or underscore.js) you can use the debounce function.
Example (jQuery used for keyup):
$('#myTextArea').keyup(_.debounce(function() { alert('hello'); }, 500));