cturner Posted January 22, 2007 Share Posted January 22, 2007 I am wondering if someone could please tell me how I can keep a text box that has style="display: none;" in it from disappearing after a submit button has been pressed? I have the following code to make the text box appear:[code]function showTextField1(el) { if (el.selectedIndex) { switch (el.selectedIndex) { case 7: document.forms[0].elements['other1'].style.display = ""; break; } }}[/code]Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Zeon Posted January 22, 2007 Share Posted January 22, 2007 you could set a cookie which remembers the id of the textbox and check for that cookie in body onload. Quote Link to comment Share on other sites More sharing options...
fenway Posted January 22, 2007 Share Posted January 22, 2007 Don't you get redirected on submit anyway? 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.