Skip to content
Advertisement

How can I add Automatic intellisense to a Textbox using Jquery

I want to add automatic Intellisense (Auto Complete–Filtering Search Result) to a textbox, corresponding to the words that I’m typing in that textbox and the Intellisense is fetched from a database table. How can I achieve this? Can anyone help?

Here is my jQuery code:

JavaScript

send.php file given below:

JavaScript

Corresponding HTML Code is given below:

JavaScript

Advertisement

Answer

You have to include the following scripts in your html page

JavaScript

And add the following css in head of your html

JavaScript

The mistake you made is the parameter passing with the name term and trying to read with the name query in your php file. In your send.php file change the line

JavaScript

into

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement