• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML Select Box Question?

Armitage

Banned
I want to make a select box with a list of options, but allow the user to add their own if nothing fits.
Can this be done with a normal html select box construct? I can't seem to figure it out.
Thanks
 
the bigger question is...
what the users add... do you want others to be able to see that as well.

meaning if joe adds, "cheese pizza"
then do you want john who comes to the site after joe to be able to see "cheese pizza" as an option

but as for what you're asking for any scripting language would be able to handle it.
javascript does this on the client side... so no reloading.
 
Originally posted by: hoihtah
the bigger question is...
what the users add... do you want others to be able to see that as well.

meaning if joe adds, "cheese pizza"
then do you want john who comes to the site after joe to be able to see "cheese pizza" as an option

but as for what you're asking for any scripting language would be able to handle it.
javascript does this on the client side... so no reloading.

The options are generated from a database query.
If somebody adds a field, it will be added to the db after validation. This is a closed system, so I'm not concerned about malicious users entering crap.

No way to do it with regular html?
I don't have time to learn javascript right now.
 
If that's the case, why don't you have it added to the db but mark it for validation?
 
Originally posted by: kt
If that's the case, why don't you have it added to the db but mark it for validation?

Yea, that's fine.
The issue is coming up with a single form field that serves as both a text entry box and a drop-down select box.
 
Back
Top