Computing.Net > Forums > Web Development > editable list box

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

editable list box

Reply to Message Icon

Name: geohoffman49431
Date: May 25, 2007 at 16:04:15 Pacific
OS: XP PRO
CPU/Ram: 512 DDR 2700
Product: Generic
Comment:

I need a simple dropdown listbox that is editable (so the user can select something from the list or type in their own string). I cant seem to find any normal html that allows this - does one exist? I am proficient in php but I have avoided javascript like the plague so if you have a solution that uses it could you please also explain the javascript. Thank you.



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: May 26, 2007 at 23:55:05 Pacific
Reply:

There is no HTML control with that function. There are two options that I can think of:

1) Create an option in the select list called "Other". When the user selects that option display a text field for them to enter the other calue into.

2) There was a javascript/CSS script that gave that type of functionality. But a) it would probably have some cross-browser problems, and b) it was not free. Can't seem to find it right now, but that does exist.

I have used option 1 many times and seen it used elsewhere as well. Let me know if you need some sample DHTM (javascript and CSS) to show/hide the text field based upon the select list.

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: editable list box

how to remove selected items from a list box www.computing.net/answers/webdevel/how-to-remove-selected-items-from-a-list-box-/4066.html

HTML Combo boxes www.computing.net/answers/webdevel/html-combo-boxes/1210.html

can't edit or add records - asp.net www.computing.net/answers/webdevel/cant-edit-or-add-records-aspnet/109.html