function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
khushi ahujakhushi ahuja 

Search Function should be available like google search

Hey,
My usecase is  create a text space wherein user can search for contacts, as soon as user starts to type show records matching that criteria so that he can select the contact. (Similar to how you perform a google search, the moment you type in the recommended results are available to select in order to complete the text for search).
I have my query as below but i want search functionality such that recommended results should be available. plz help
string searchquery = 'select id,FirstName,Email from Contact where FirstName LIKE \'%'+searchName +'%\' AND AccountId = \''+acc.Id+'\'';
Raj VakatiRaj Vakati
You need to use autocomplete feature 

https://opfocus.com/visualforce-autocomplete-lookup-fields/
http://anupjadhav.com/2013/02/01/jquery-autocomplete/
http://www.minerva18.com/blog/autocomplete-textbox-salesforce/
http://blogforce9.blogspot.com/2013/10/auto-complete-visualforce-component-v2.html
https://github.com/Avinava/Autocomplete-Visualforce-Component-V2