Question

Locked

Manual entry in an HTML drop down box

By jwendel ·
How can I change a drop down box to make a manual entry if none of the choices are what I need?

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Best bet...

by deity_chooch In reply to Manual entry in an HTML d ...

Best bet is to make an OPTION in the SELECT element that says something like "Other..." and write some JavaScript to read the change and display an text INPUT element. Make a JavaScript function that changes based on the value of the SELECT box (if it's "Other...", show the text INPUT, else hide it). You could either tell the JavaScript to actually write the code, or you might want to use CSS to simply hide the box until the JavaScript changes the style.

Collapse -

You cannot do that

by London Freelancer In reply to Manual entry in an HTML d ...

Thats the behaviour of drop downs in the browser. The only way as suggested is have a "Other" option and display a text box to take in the input.
<BR><BR>
Regards,<BR>
<a href="http://www.UrStop.com">UrStop</a>

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Forums