onchange pass values back to form reload.
Posted on 2007-03-22
As much as my skills have increased in web desing and such, some things are still beyond me.
I have a web page with a single form. This form will have a single submit button. On the form is a <select onchange> that summons up the following Jscript:
self.location='preprint.asp?dept=' + val;
I can then use "IF not dept = "" then" to process the creation of a new <select>...
This part works great. The problem is that all other fields in the form are erased when the onchange script is called. I need the onchange to also pass through the user entries from a variety of text fields and radio buttons and repopulate the form, with the new dropdown menu and all the previously entered text fields.
How do I modify the form, or the script so that I can do this:
self.location='preprint.asp?dept=' + val + '&val2=' + val2 + '&val3=' +val3;