unemployment Posted May 23, 2011 Share Posted May 23, 2011 I want to create an instant search drop down for my search bar using ajax. How would I go about doing something like that? I already have my search engine working in php, but now I want to add a nice javascript front-end to it. Quote Link to comment https://forums.phpfreaks.com/topic/237249-create-instant-search/ Share on other sites More sharing options...
Maq Posted May 23, 2011 Share Posted May 23, 2011 What exactly do you need help with? The basic gist go like this: Listen for each keydown event and make an AJAX call with the value of the search field. In your backend code do a sql search, return the results, populate the drop down. Quote Link to comment https://forums.phpfreaks.com/topic/237249-create-instant-search/#findComment-1219184 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.