loading...........
No pues.. si tus if estan mal!
function habilitar(){
if (document.form1.check.checked == true)
{
document.getElementById('btn').disabled = false;
document.getElementById('btn1').disabled = true;
document.getElementById('btn2').disabled = true;
return false;
}
else
(document.form1.check.checked == false )
{
document.getElementById('btn').disabled = true;
document.getElementById('btn1').disabled = false;
document.getElementById('btn2').disabled = false;
return true;
}
}
debería ser solo
Código PHP:
function habilitar(){
if (document.form1.check.checked == true)
{
document.getElementById('btn').disabled = false;
document.getElementById('btn1').disabled = true;
document.getElementById('btn2').disabled = true;
return false;
}
else
{
document.getElementById('btn').disabled = true;
document.getElementById('btn1').disabled = false;
document.getElementById('btn2').disabled = false;
return true;
}
}
connection closed.