Many websites now have this effect. Enter a character in the text box, and the matching content will appear below. This code demonstrates how this function is completed. Of course, this is static. You can change the prompt The content is read from the database, which requires the use of AJAX.