Here in this blog i have used AJAX to search and provide result on the whenever user enter any character in the textbox. The result is coming from a PHP page. Ajax search is used for making the code easy to understand and for saving the users time, here is simple line of AJAX code which search the value from the array and display result in the form of a list. For example a user enter the first letter of string in the text box and it will display the result related to that character.
Benefits of using Ajax search:
1. Results are shown as you type in the input box.
2. Results narrow as you continue typing the text.
3. If results become too narrow or less, remove characters to see a broader result.