Jump to content

Text box disappears


cturner

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.