I am having a problem that I cant figure out. What I am currently doing, is when you select a value in a dropdown certain text displays based on your selection, but when I refresh the page, the text gets wipped out. I need the text to remain there when the page gets refreshed. I tried calling the function that shows/hides text onload but that doesnt seem to be working either.
Please help!!
This is my javascript code that changes the text that gets displayed.
This is the code for the dropdown that I am using.Code:<script language="JavaScript"> <!-- function ShowHide(v, x) { if (v.value == "2D") x.style.display = "block"; else if (v.value == "1T") x.style.display = "block"; else if (v.value == "SS") x.style.display = "block"; else x.style.display = "none"; } function doLoad() { ShowHide(document.form[0].var5.value, showOptionsThurs); } // end --> </script> <BODY ONLOAD="javascript:doLoad()">
This is the code that is used to display the text.Code:<SELECT id="var5" NAME="dropown_var5" class="text" onClick="ShowHide(this, showOptionsThurs);"> <OPTION VALUE=""> ---------- Please Select One ---------- <OPTION VALUE="EO"> EO <OPTION VALUE="2D"> 2D <OPTION VALUE="1T"> 1T <OPTION VALUE="1F"> 1F <OPTION VALUE="SS"> SS </SELECT>
Code:<tr id="showOptionsThurs" STYLE="DISPLAY:NONE;" > <TD colspan="1"> Display Text </TD> </tr>




Reply With Quote