I'm pretty sure this would have some Javascript in it.. How would I do this... Here is my form: <select class='input'> <option name='digitalpoint'>Digital Point</option> <option name='sitepoint'>Site Point</option> <option name='ebay'>E-Bay</option> <option name='other'>Other..</option> </select> PHP: I'd like it so when you select "Option", a new text box appears below the dropdown where you can insert the "Other" option.
How's this? <html> <head> <script type="text/javascript"> function showOther(sValue) { var sDisplay = 'none'; if ( sValue == 'other' ) { sDisplay = 'block'; } document.getElementById('other').style.display = sDisplay; } </script> </head> <body> <form> <select class="input" onchange="showOther(this.value);"> <option value="digitalpoint">Digital Point</option> <option value="sitepoint">Site Point</option> <option value="ebay">E-Bay</option> <option value="other">Other..</option> </select> <input type="textbox" name="other" id="other" style="display: none;" /> </form> </body> </html> HTML: