Top Menu

The following PHP and jQuery snippet allows you to type the search phrase and display what you have typed in the results field. I am showing you this technique to use jQuery to know what you are typing in the search field. Usually, you would use Ajax to display the results from the database. I didn’t here and I just want to show you the keystrokes and character changes that you can capture on the fly as the user is typing. You can use this code as a stepping stone to display your results quickly without refreshing the page nor waiting for the user to finish typing.

See it in action here.


About The Author

I write about my life! I would appreciate it if you comment and tell me how life is treating you? :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">