Olá Pessoal ... estou com um probleminha básico
Tenho 2 rows:<tr id="rowAutor">
<td align="right">Autor:</td>
<td>
<cfinput type="text" name="autor" class="caixa" size="75" maxlength="100" value="#GetArtigo.Autor#">
</td>
</tr>
<tr id="rowEmail">
<td align="right">E-mail:</td>
<td>
<cfinput type="text" name="email" class="caixa" size="75" maxlength="100" validate="email" message="Campo E-mail Inválido." value="#GetArtigo.Email#">
</td>
</tr>
<cfinput type="radio" name="tipo" value="Artigo" checked="yes" onChange="mudaTipoNoticia();">Artigo
<cfinput type="radio" name="tipo" value="Noticia" onChange="mudaTipoArtigo();">Notícia
e as Functions do onChange:
function mudaTipoArtigo(){
document.getElementById("rowAutor").style.display = 'none';
document.getElementById("rowAutor").style.visibility= 'hidden';
document.getElementById("rowEmail").style.display = 'none';
document.getElementById("rowEmail").style.visibility= 'hidden';
}
function mudaTipoNoticia(){
document.getElementById("rowAutor").style.display = 'inline';
document.getElementById("rowAutor").style.visibility= 'visible';
document.getElementById("rowEmail").style.display = 'inline';
document.getElementById("rowEmail").style.visibility= 'visible';
}
Agora o Problema:
quando clico no Radio Noticia ele deveria esconder o rowAutor e o rowEmail
e quando clico no artigo ele voltaria
no firefox funciona
agora no IE não ....
alguma luz???
abraço!!