PDA

View Full Version : Anyway to combine a text input w/ a drop down box?


ghostz00
08-23-2006, 04:50 PM
I want the user to have the option to go with one of the availible options in the dropdown box. But also to be able to create a new one using the text input.

I would be loading the items to the combo box / text input through ajax from a mysql database.

thanks

thesavior
08-23-2006, 05:16 PM
this wouldn't be html then, if your using javascript to update the drop down box, you need to use ajax or something to give the user the ability to add another row into the table, then update the drop down box.

Wylie
08-23-2006, 05:45 PM
I think you can use input box and drop-down list box togeter, and with 2 radio buttons for selection.

ghostz00
08-23-2006, 06:08 PM
I was just hoping that there was a way to cobmine them both into one object easily without using javascript. Kind of like when you have auto complete on in IE and you start typing and a box drops down and has a list of stuff you've previously entered. Sorry if I was unclear about that.

thesavior
08-23-2006, 07:04 PM
Well the drop down box on ie is part of the browser. You could use ajax though to imitate one from information of the user's last typed things from a database.