Hi,
Can u check whether the following example is useful to you or not..
----------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script>
function disableExperience()
{
if(document.fTest.Category[0].checked)
{
document.fTest.sExperience.selectedIndex = 0
document.fTest.sExperience.disabled = true
}
else
{
document.fTest.sExperience.disabled = false
}
}
</script>
<script event="onmousedown" for="fTest">
disableExperience()
</script>
</HEAD>
<BODY>
<form name=fTest>
Category:
<input type=radio name=Category value=0 onclick="disableExperience()">Fresher</option>
<input type=radio name=Category value=1 onclick="disableExperience()">Experience</option>
<br>
<br>
Experience:
<br>
<br>
<Div id="dExperience">
<select name=sExperience>
<option value=0>Select</option>
<option value=1>1 Year</option>
<option value=2>2 Years</option>
</select>
</Div>
</form>
<P> </P>
</BODY>
</HTML>
--------
Thanks
Suresh
|