Hi All
I'm new to javascript and was wondering if someone can help me with
this I want to disable my second and third drop-box if the first one
is selected to "Closed" I think I'm close but just cant get it to work
here is my code:
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFF F" text="#000000">
<script>
function DisableMondayDr opdown(bool)
{
if(document.Mon day.Hours == "Closed"){
document.Monday .Hours1.disable d=bool;
document.Monday .Hours2.disable d=bool;
}
}
</script>
<form name=Monday onChange="Disab leMondayDropdow n(true)">
<select name=Hours>
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
<option value=Closed>Cl osed
</select>
<select name=Hours1>
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
</select>
<select name=Hours2>
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
</select>
</form>
</body>
</html>
If you can help thanks in advance
Blnukem
I'm new to javascript and was wondering if someone can help me with
this I want to disable my second and third drop-box if the first one
is selected to "Closed" I think I'm close but just cant get it to work
here is my code:
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body bgcolor="#FFFFF F" text="#000000">
<script>
function DisableMondayDr opdown(bool)
{
if(document.Mon day.Hours == "Closed"){
document.Monday .Hours1.disable d=bool;
document.Monday .Hours2.disable d=bool;
}
}
</script>
<form name=Monday onChange="Disab leMondayDropdow n(true)">
<select name=Hours>
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
<option value=Closed>Cl osed
</select>
<select name=Hours1>
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
</select>
<select name=Hours2>
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
</select>
</form>
</body>
</html>
If you can help thanks in advance
Blnukem
Comment