Codice:
<form action="registrati.php" name="registrati" method="post">
<input type="hidden" name="form[do]" value="1" />
<table width="75%" border="0" cellspacing="0" cellpadding="3" class="tblcontent">
<tr>
<td colspan="2" align="right"><b><u>Modulo registrazione Cliente</u></b><br /><br /></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="radio" name="form[cliente]" value="ditta" onChange="switchRegistrati();" />Ditta <input type="radio" name="form[cliente]" value="privato" onChange="switchRegistrati();" checked />Privato</td>
</tr>
Codice:
function switchRegistrati()
{
var selIdx = document.registrati.cliente.selectedIndex;
var result = document.registrati.cliente[selIdx].value;
}
Firefox mi da come errore:
Codice:
document.registrati.cliente[selIdx] has no properties
Non capisco perchè...