Check it Out ! ! !
Hi all,
I have a drop down list in which when items selected it should enable or disable other drop down boxes accordingly..
My problem is,
when i submit the form after selecting it i couldnt get values from those fields...
help me out .
<script type="text/javascript">
window.onload = function()
{
var f, els;
if (f = document.forms[0])
{
f.elements.s2.disabled =true;
f.elements.s1.onchange = function()
{
this.form.elements.s2.disabled = (this.value !='client');
}
f.elements.s1.onchange();
}
}
</script>
<select name="s1" size="1">
<option value="client">client</option>
<option value="purchase">purchase</option>
</select>
<select size="1" name="s2">
<option selected="selected">-choose-</option>
<option >1</option>
<option >2</option>
<option >3</option>
</select>

