thanks for coopration but my problem has been solved . i found this script on the net
- <script Language="JavaScript">
-
var _T = "locked";
-
var _F = "unlocked";
-
function lockIt(_P)
-
{
-
var _L =
-
document.aform.lck.value;
-
if(_L==_P)return;
-
-
document.aform.sub_cat.disabled=(document.aform.lck.value=(_L==_F)?_T:_F)==_T;
-
document.aform.main_cat.disabled=(document.aform.lck.value=(_L==_F)?_T:_F)==_T;
-
}
-
function isDis() {
-
return (document.aform.lck.value==_T);
-
}
-
</script>
-
<form Name="aform" ID="aform" Action="" Method="post">
-
Sub Category : <select name="sub_cat" ID="sub_cat" onfocus="if(isDis())blur();">
-
<option value="0" selected>Business</option>
-
<option value="1">Graphics</option>
-
<option value="2">Home & Hobby</option>
-
<option value="3">Utilities</option>
-
<option value="4">Web utilities</option>
-
</select>
-
Main Cat <select name="mian_cat" ID="main_cat" onfocus="if(isDis())blur();">
-
<option value="0" selected>Business</option>
-
<option value="1">Graphics</option>
-
<option value="2">Home & Hobby</option>
-
<option value="3">Utilities</option>
-
<option value="4">Web utilities</option>
-
</select
-
<br><br>
-
save & send : <input type=radio checked onclick="lockIt(_F)" id=radio1 name=radio1 value="1">
-
don not save only send :<input type=radio onclick="lockIt(_T)" id=radio1 name=radio1 value="2">
-
<input type=hidden name="lck" value="unlocked">
-
</form>
this almost comes up to my need but if you can make some change in this script it will make me happier
the change i want is that it uses two radio elements to disable and enabled the selects and i want only one checkbox instead of two radios if user checks the checkbox option both selects should become disabled and if unchecks it it should turn enabled again .. this not mendatory but if you can do it ..