hello, basically I am making a Contact us page and I have made it so when you press a "Radio" button it will enable/disable a text box, here is my code:
<label for="subject">Subject<span style='color:#ff0000'>*</span></label><br />
Site Feedback <input name="subject" value="Site Feedback" checked="checked" onClick="document.contactform.subject2.disabled=1; res()" onFocus="document.contactform.subject2.disabled=1; res()" type="radio"><br />
Bugs/Errors <input name="subject" value="Bugs/Errors" onClick="document.contactform.subject2.disabled=1; res()" onFocus="document.contactform.subject2.disabled=1; res()" type="radio"><br />
Site Content <input name="subject" value="Site Content" onClick="document.contactform.subject2.disabled=1; res()" onFocus="document.contactform.subject2.disabled=1; res()" type="radio"><br />
Other <input name="subject" value="" onClick="document.contactform.subject2.disabled=0" onFocus="document.contactform.subject2.disabled=0" type="radio"><br />
<input id="subject2" name="subject2" maxlength="50" size="76" disabled="disabled" type="text" tabindex="1" />
That's all very well but when I submit the form and click the "Back" button on my web browser the "Radio" button still stays on what it was on before I clicked "Back" and there is still text in the textbox but, the script doesn't make the box enabled again it is still disabled and has the text in the box and if you press submit again the next script doesn't "See" the disabled code so it validates it so the subject is empty. is there a way so that i can keep the code enabled when i press back?
Note: I have actually got a javascript that does this for you but the reset button does not work on that.