fil79 Posted October 20, 2009 at 03:44 PM Report Share #292543 Posted October 20, 2009 at 03:44 PM Boas tenho uma função em javascript que deve fazer aparecer/desaparecer uma linha de uma tabela: <tr height="30px" id="alarme" style="display:none;"> javascript: function verifica(valor){ if (valor=="sim"){ document.getElementById('alarme').style.display='block'; }else{ document.getElementById('alarme').style.display='none'; } } funciona muito bem no IE, mas no firefox apesar de aparecer/desaparecer desformata por completo o formulário..porque razão não posso esconder um <tr> no firefox? Desde já agradeço. MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
elcsat Posted October 25, 2009 at 09:22 PM Report Share #293330 Posted October 25, 2009 at 09:22 PM e em vez de passar o valor sim ou nao podes usar um if (elemente.style.display=='none') ..... em vez de block usa inline Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now