I am using following code to auto-complete the text field,
$(function() {
var availableTags = [
<?php
foreach($botname as $row)
{
echo "'".$row->plsal_name_botanical."-".$row->pot_code."',";
}?>
];
$( "#botname" ).autocomplete({
source: availableTags
});
});
As the result array is huge. How to write code to give a limit to display suggestion.