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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.