How can you set a limit on the result from the jQuery autocomplete?
This is my code:
$.ajax({ url: \"/cache/search/SearchModels.x
You could add a handler for the "open" event:
open:function(event,ui){ var maxListLength=10; var ul = jQuery( "#txtTopSearch" ).autocomplete("widget")[0]; while(ul.childNodes.length > maxListLength) ul.removeChild(ul.childNodes[ul.childNodes.length-1]); }