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
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.
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.
Summary: The best way to do this is with JavaScript on the client side (in the browser). When someone selects something in then first list box, a javascript function is called which populates the second list ...
Summary: The provided code is the entire code for a page that is supposed to be able to add, edit, view and delete records from the table 'publications$' . For some reason, I can't get it to let me add or edi...