+ Start a Discussion
RajaMohanRajaMohan 

How to display a small box using Java Script or jQuery?

Hi All,

 

I created a VF page which has a text box called City. It is a normal text box. When ever the user enter a character, I want a small text box to populate the existing cities starting with that character and it goes on with the next character. The user can able to select the city from the text box which appears after entering a character.  The cities is a custom object. 

 

Anyone, please suggest me how do I do this?

 

Any examples will be highly appreciated.

 

Thanks

Raja

bob_buzzardbob_buzzard

There's a nice example of this on the blog of my fellow MVP Jeff Douglas:

 

http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

RajaMohanRajaMohan

Hi Bob,

 

Thanks for the reply. 

 

This is showing the result on the right hand side of the window. Can't we have a possible way of getting the result as a drop down list in the same text box once the character is entered?

 

Please let me know if you have any ideas on this. Mean while I will try to get this sorted by using the above link. Thanks for the useful link.

 

 

Thanks

Raja