Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
An if/else blocks works without delimiter, but in that case only the first line is taken in account.
Your error is that as you have 2 lines in the if() block, the else is considered as an orphan by the scripting engine.
Rewrite it like:
Code:
if (selectedValue == "Multisports Tour"){
//You may prefer to set the display to "block", to ensure that it's visible.
//Your syntax here means "fall back on the style specified inline", and might be a problem if you update your html
document.getElementById("Which_Multitour").style.display = "";
document.getElementById("Which_Multitour").value = "Please Specify";
}
else{
document.getElementById("Which_Multitour").style.display = "none";
}
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 07-31-2007 at 07:38 AM..
|