+ 2

make search bar with php or javascript (jQuery)

First thing that I want to ask is which one is better to make search bar with php or js? Please refer me to useful and workable link for making search bar

19th May 2017, 4:42 AM
Ani Naslyan
Ani Naslyan - avatar
1 Answer
+ 2
A standard search bar has following features: if any search term is entered there should be a dropdown list to display suggestion for that word (from your database tables). Now if user click on a search term either you refresh the page and append search string in URL. OR Refresh the page using Ajax call (personally I prefer first one but it also depends on your requirement). you can visit any website for suggestion i.e Amazon, Flipkart, etc. NOTE: To achieve this functionality you need to integrate both client side(jquery) and server side(php).
19th May 2017, 3:31 PM
Munish
Munish - avatar