Ok.......
Ora ho 2 pulsanti quando premo 1 devo disattivare tutti i pulsanti.
Per fare la disattivazione devo usare il ciclo.
cioè
codice:
<html>
<script language="javascript">
function Disattiva(valore)
{
for(i=0;i<document.forms[0].elements.length;i++)
{
if(document.forms[0].elements[i].type=="button")
{
gestElementById(valore).disabled = true;
}
}
}
</script>
<body>
<form name="nForm">
<input type="button" value="Puls" name="Puls" id="Puls" onclick="Disattiva('Puls')">
<input type="button" value="Pulsante1" name="Pulsante1" id="Puls" onclick="Disattiva('Puls')">
</form>
</body>
</html>
In questo caso mi disattiva solo il pulsante cliccato
Come mai?