JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<input type="text" name="fill" />
JavaScript
(function() {
var timeout;
$('[name="fill"]').typeahead({
source: function(value) {
if (timeout) {
clearTimeout(timeout);
}
timeout = setTimeout(function() {
alert(value);
}, 300);
}
});
})();