Ciao,
ho il seguente codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function verificaStato(){
if (!document.lista.modItem.checked) {
document.azioni.modifica.disabled = true;
} else {
document.azioni.modifica.disabled = false ;
}
}
</script>
</head>
<body>
<form name="lista" method="post" action="">
<input name="modItem" type="radio" value="1" onChange="verificaStato()">1</p>
<input name="modItem" type="radio" value="2" onChange="verificaStato()">2</p>
</form>
<form name="azioni" method="post" action="">
<input disabled type="submit" name="modifica" value="Invia">
</form>
</p>
</body>
</html>
In teoria dovrebbe abilitarmi il tasto di invio solo quando seleziono uno dei radiobutton, invece non succede niente.
Qualche suggerimento?