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] Link to comment https://forums.phpfreaks.com/topic/35618-text-box-disappears/ Share on other sites More sharing options...
fenway Posted January 25, 2007 Share Posted January 25, 2007 I'm confused.... Link to comment https://forums.phpfreaks.com/topic/35618-text-box-disappears/#findComment-169057 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.