Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/09/2005, 09:29
Damichel
 
Fecha de Ingreso: diciembre-2004
Mensajes: 50
Antigüedad: 20 años, 1 mes
Puntos: 0
Hola...trata esto

<HEAD>
<script language="javascript">
function habilita()
{
var option1 = document.Form1.r1.checked;
if(option1==true)
{document.Form1.tx1.disabled=false;
document.Form1.r2.checked = false}
else
{document.Form1.tx1.disabled=true;
}
}

function deshabilita()
{
var option2 = document.Form1.r2.checked;
if(option2==true)
{
document.Form1.r1.checked = false
document.Form1.tx1.disabled=true;}
else
{document.Form1.tx1.disabled=false;
}
}

</script>
</HEAD>


<INPUT type="radio" id="r1" runat="server" onclick="habilita();">
<INPUT type="radio" id="r2" runat="server" onclick="deshabilita();" >
<INPUT type="text" id="tx1" runat="server">