JQuery autocomplete example with database accessing

How can I create text box or drop down box using jquery autocomplete feature with database accessing.It is happening when you are pressing keys in that field.Then call to the database to get records.First you must access jquery-ui auto complete library files.
Here is a php front-end file.First include the jquery library file and jquery-ui.css,jquery-ui.min.js files.

This is the data.php file to get and send the records of the database.

If you want to change auto complete styles change add the following stylesand change that as you want.

View Demo

Download JQuery autocomplete with database accessing Example (3 KB)