dharmer1975
Programmer
I've got a variable called test that I declare in the following function in an include file:
------------------------------------
function checkApplication() {
if (document.jolApply.platform.options[document.jolApply.platform.selectedIndex].value == "null" {
alert ("Please select a platform"
return false;
}
else
if (document.jolApply.url.options[document.jolApply.url.selectedIndex].value == "Choose" {
alert ("Please select a category"
return false;
}
else {
var test = document.jolApply.url.options[document.jolApply.url.selectedIndex].value;
alert (test);
return true;
}
}
---------------------------------
My FORM tag reads as follows:
<FORM name="jolApply" ACTION=test onsubmit="return checkApplication(this.jolApply)">
I want to link to a relative URL that is contained within my variable 'test'. How can I get my page to navigate to the URL within 'test' when I click my submit button? I don't know the syntax for calling the variable in the FORM tag. Any assistance would be greatly appreciated. Thanks,
-Dan
------------------------------------
function checkApplication() {
if (document.jolApply.platform.options[document.jolApply.platform.selectedIndex].value == "null" {
alert ("Please select a platform"
return false;
}
else
if (document.jolApply.url.options[document.jolApply.url.selectedIndex].value == "Choose" {
alert ("Please select a category"
return false;
}
else {
var test = document.jolApply.url.options[document.jolApply.url.selectedIndex].value;
alert (test);
return true;
}
}
---------------------------------
My FORM tag reads as follows:
<FORM name="jolApply" ACTION=test onsubmit="return checkApplication(this.jolApply)">
I want to link to a relative URL that is contained within my variable 'test'. How can I get my page to navigate to the URL within 'test' when I click my submit button? I don't know the syntax for calling the variable in the FORM tag. Any assistance would be greatly appreciated. Thanks,
-Dan