Text Field and Select Menu as one?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
curseofthe8ball
Forum Commoner
Posts: 73
Joined: Sun Jun 01, 2003 12:33 am

Text Field and Select Menu as one?

Post by curseofthe8ball »

I'm not sure if this is even possible but I'll toss the idea out there.

We have a search function on a site where the standard textfield is displayed along with a Submit button. This works fine but we now would like to make this search function a little more advanced. We have preselected some keywords that people do alot of searching on our site for and would like to put those keywords into a select menu for someone to choose from.

The problem is, space is limited in our design so we can't display both a textfield and a select menu. What I'm wondering is if there is anything out there that can make a text field turn into or act like a select menu and vice-versa?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Moved to Client Side.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

This is possible, but only with Javascript. Google the term 'javascript autocomplete' or 'autosuggest' and you may find a few things that will work for you.
Post Reply