- bootstrap with typeahead
- jquery
This will use bootstrap with typeahead to create an autocomplete search. It shouldn't search until user is done their thought. Aka - fast typers. Right now set to 300ms.
Also caches content from server so you don't make the same call over and over again.
Thanks a lot, i use this code to fix my problem close on what you link to ;) this will be faster and you can do more like this if you want more data into this typeahead.
$input.keydown(function(){
$input.typeahead({source:function(query, process){
$.post('{url}',{
'q' : query
},function(data){
return process(data.contentList);
},'json');
}
});
})