Creating an autosuggest feature

Autosuggest features are in abundance on the Internet. There are many plugins available for jQuery and jQuery UI which will allow you to add the autosuggest feature to your site quickly and easily. This recipe will show you how to create one from scratch which you can customize and add your own unique features to.

Getting ready

The server-side code for this recipe mirrors that of the previous one. Ensure that you have a web server and a MySQL database server running and ready to use.

How to do it…

The following are the steps to create an autosuggest feature:

  1. Please refer to the previous recipe of this chapter, Creating a search feature, to create and set up a stationary database and the search.php script. We will be ...

Get jQuery 2.0 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.