Cita:
Iniciado por JaviCN
intentar lo intente pero no mucho la verdad, en javascript ando muy pegado
Ya di con el estoy cuajado
Código:
function experimento()
{
var ina=document.getElementById('a').value;
if(ina=='a')
{
document.getElementById('a').style.backgroundColor = '#999999';
return false;
}
else
{
document.getElementById('a').style.backgroundColor = '#fff';
return true;
}
}
function experimento2()
{
var inb=document.getElementById('b').value;
if(inb=='a')
{
document.getElementById('b').style.backgroundColor = '#999999';
return false;
}
else
{
document.getElementById('b').style.backgroundColor = '#fff';
return true;
}
}
function prueba()
{
var retornar1 = experimento();
var retornar2 = experimento2();
return retornar1 && retornar2;
}