jQuery Autocomplete
Autocomplete using jQuery is quite easy. jQuery made this cumbersome work easy for programmers. So what is needed for autocomplete feature in your page jquery.js jquery.autocomplete.js jquery.autocomplete.css file Just include these three files in header. Ad the following script to your header function showItem(row) { return row[0]; } $(document).ready(function() { $("#category").autocomplete( "getcategory.php", { minChars:1, max: 200, scrollHeight: 180, formatItem:showItem } ); }); Let us depicts about the above code segments. Here #category means the category id on which you want autocomplete feature. and "getcategory.php" is the server side file which will provide result for autocomplete. Now let us discuss about the parameters. minChars : minimum character in the input to call autocomplete max: maximum item in the list. No more items exceeding this value will not be displayed. Its default value is 10 scrollHeight: this...