cturner Posted January 25, 2007 Share Posted January 25, 2007 I have a text box that disappears when the submit button is pressed. I need the text box to remain displayed when the submit button is pressed. Thanks in advance.Here is the code to make the text box appear:[code]function showTextField1(el) { if (el.selectedIndex) { switch (el.selectedIndex) { case 11: document.forms[0].elements['other1'].style.display = ""; break; } }}[/code]This code is on a combo box:[code]onchange="showTextField1(this);"[/code]Here is the code for the text box itself:[code]<input type="text" name="other1" size="26" style="display: none;" value="<?php print $other1; ?>" />[/code] Quote Link to comment Share on other sites More sharing options...
fenway Posted January 25, 2007 Share Posted January 25, 2007 I'm confused.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.