Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User input drop down menu 1

Status
Not open for further replies.

yesti

MIS
Dec 8, 2000
166
US
Is it possible to have a drop down menu that the user can also type into? Thanks.
 
it could be that i'm to tired to get it working...but why dose innerHTML not work for option tags?
 
Hi all,

The select tag is system generated unlike any other form element and therefor you are very restricted with the customisation..

There are a few ways to get round this and they are mentioned in this forum if you want to do a search.

I also think that has a script that if you choose other, then an alert box prompts you to enter the info..

Hope this helps Wullie

 
Thanks! I'll take a look. Much appreciated.
 
I looked at the script bluranj suggested and now my problem is this:

I pull records from a database to populate the combo box. I add them using the add() function:

dm.add("text",int);

The problem is if the text has an apostrophe in it I get a runtime error:

Line: 0 Error: Expected ')'.

I encode apostrophes in my database to ' so they do not cause problems with the SQL string going into the database but I guess they are causing trouble here. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top