endomorph1
Technical User
Please help because this is driving me crazy.
I have a script at the moment which is disabling some selection boxes on changing other selection boxes -
function disableresort(disableIt)
{
document.searchbox.Resort.disabled = disableIt;
}
function disablecountry(disableIt)
{
document.searchbox.Country.disabled = disableIt;
}
function disableweeks(disableIt)
{
document.searchbox.Weeks.disabled = disableIt;
}
function disablemonth(disableIt)
{
document.searchbox.Month.disabled = disableIt;
}
function enableField()
{
document.searchbox.Resort.disabled=false;
document.searchbox.Country.disabled=false;
document.searchbox.Weeks.disabled=false;
document.searchbox.Month.disabled=false;
}
I need to expand this now.
When I run function disableresort (Which is called by selecting an option in "Country", I need to change other selection boxes.
In selection box called "Country", if the option (with value POINT, option number 3) is selected, I need to empty the selection box called "Weeks" and create one single option called POINTS which has a value of POINTS.
I also need to disable a selection box called MONTHS and a selection box called SIZE.
In selection box called "Country", if the option (with value VACL, option number 2) is selected, I need to empty the selection box called "Weeks" and create one single option called FLOATING which has a value of FLOATING.
I also need to disable a selection box called MONTHS.
Any help is greatly appreciated. Thanks
I have a script at the moment which is disabling some selection boxes on changing other selection boxes -
function disableresort(disableIt)
{
document.searchbox.Resort.disabled = disableIt;
}
function disablecountry(disableIt)
{
document.searchbox.Country.disabled = disableIt;
}
function disableweeks(disableIt)
{
document.searchbox.Weeks.disabled = disableIt;
}
function disablemonth(disableIt)
{
document.searchbox.Month.disabled = disableIt;
}
function enableField()
{
document.searchbox.Resort.disabled=false;
document.searchbox.Country.disabled=false;
document.searchbox.Weeks.disabled=false;
document.searchbox.Month.disabled=false;
}
I need to expand this now.
When I run function disableresort (Which is called by selecting an option in "Country", I need to change other selection boxes.
In selection box called "Country", if the option (with value POINT, option number 3) is selected, I need to empty the selection box called "Weeks" and create one single option called POINTS which has a value of POINTS.
I also need to disable a selection box called MONTHS and a selection box called SIZE.
In selection box called "Country", if the option (with value VACL, option number 2) is selected, I need to empty the selection box called "Weeks" and create one single option called FLOATING which has a value of FLOATING.
I also need to disable a selection box called MONTHS.
Any help is greatly appreciated. Thanks