From the course: Ajax with PHP: Add Dynamic Content to Websites

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a text input

Create a text input

From the course: Ajax with PHP: Add Dynamic Content to Websites

Start my 1-month free trial

Create a text input

- [Instructor] In this chapter, we will implement a search autosuggest feature using Ajax. I'm sure you've seen autosuggest in action before. It's very popular. The idea is that as a user is typing into a text input field, the webpage then displays suggestions below the text input. In other words, it takes the data the user's typing, and uses that to make suggestions, in order to save them typing. Those suggestions could be used to populate the text input field simply as text, or they could be links that take you to either search results or to a specific content page. The idea is to try to speed up the user experience and help the user have to type less to get to where they want to go. It's very useful. One of the best examples of autosuggest is still one of the first places that it was ever used. And that's the main Google page. If you go to google.com, and in the text box, you start typing, L-Y-N-D-A, you see that I get suggestions below suggesting what I might want to go to. Right,…

Contents