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. Link to comment https://forums.phpfreaks.com/topic/35161-text-box-displaying-question/ 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. Link to comment https://forums.phpfreaks.com/topic/35161-text-box-displaying-question/#findComment-166261 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? Link to comment https://forums.phpfreaks.com/topic/35161-text-box-displaying-question/#findComment-166668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.