S
skinnybloke
Hi - I am having problems witrh the code below (obviously) coming up
with illegal character for various characters within the field name
which is:
S_Gift Finder1_0
I have tried various ways of escaping the characters but to no avail.
I am unable to change the name of the field as it it comes from an
external off-the-shelf package.
See below for full javascript funtion.
Any help would be appreciated.
// define function to check that gift type and /or price range has
been chosen
function valgiftprice() {
if (document.forms) {
if (document.forms["giftfinder"].S_Gift Finder1_0.value == ""
&& document.forms["giftfinder"].PR.value == "-1") {
alert("Please choose a Gift Type or Price Range.");
document.forms["giftfinder"].S_Gift Finder1_0.focus();
return false;
}
return true;
}
}
with illegal character for various characters within the field name
which is:
S_Gift Finder1_0
I have tried various ways of escaping the characters but to no avail.
I am unable to change the name of the field as it it comes from an
external off-the-shelf package.
See below for full javascript funtion.
Any help would be appreciated.
// define function to check that gift type and /or price range has
been chosen
function valgiftprice() {
if (document.forms) {
if (document.forms["giftfinder"].S_Gift Finder1_0.value == ""
&& document.forms["giftfinder"].PR.value == "-1") {
alert("Please choose a Gift Type or Price Range.");
document.forms["giftfinder"].S_Gift Finder1_0.focus();
return false;
}
return true;
}
}