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
KULWANT SINGHKULWANT SINGH 

record search

i want to create a visualforce page which shows record acc to the letter type in search box, like as we saw in google search records related to letter typed are shown as a list below it. how it can be done 
pconpcon
The term you are looking for is called "typeahead." There are plenty of libraries that can do it including jQuery[1], bootstrap[2] and many more.  It will require JavaScript and most like some remote actions [3] code on your controller.  You can do it in Visualforce with this library [4] that uses twitter's typeahead library for jQuery.

Take a look at these for some inspiration.  If you have any specific issue, please let me know.

[1] https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md
[2] https://github.com/bassjobsen/Bootstrap-3-Typeahead
[3] https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
[4] https://github.com/SalesforceFoundation/visualforce-typeahead
Antonio ManenteAntonio Manente
var j$ = jQuery.noConflict();
           
j$(document).ready(function(){
  j$('body').delegate("<i>SELECTOR</i>", "focus", function(e){
    j$(this).autocomplete({
      delay: 500,
      minLength: 1,
      source:  function(request, response){
        var queryString = "<i>INSERT YOUR QUERY HERE</i>";
        var result = sforce.connection.query(queryString);
        var productArray = result.getArray("records").map(function(<i>OBJECT</i>){return <i>OBJECT.desiredField</i>});
        response(productArray);
      }
    });
  });            
});

As pcon mentioned, there are alternatives but I'm a fan of jQuery for this behavior.. Here's my take on it. Of course you'd have to get the text from the search box and generate your query.