Originariamente inviato da b-4
ho fatto in questo modo
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script>
function abilita(){
if (document.forms['tuoForm'].elements['radio'].value = 1){
document.forms['tuoForm'].elements['seleziona'].disabled= "true"
document.forms['tuoForm'].elements['testo'].disabled= "false"
}
else{
document.forms['tuoForm'].elements['seleziona'].disabled= "false"
document.forms['tuoForm'].elements['testo'].disabled= "true"
}
}
</script>
<FORM NAME="tuoForm" METHOD="POST" ACTION="....">
<INPUT TYPE="text" NAME="testo" VALUE="">
<SELECT NAME="seleziona" DISABLED>
<OPTION VALUE="1">uno</OPTION>
<OPTION VALUE="1">uno</OPTION>
<OPTION VALUE="1">uno</OPTION>
</SELECT>
<input type="radio" name="radio" value="1" checked onSelect="abilita()">
<INPUT TYPE="radio" NAME="radio" VALUE="2" onSelect="abilita()">
</FORM>
</body>
</html>
ma non mi attiva mai la select.... dove sbaglio?