A ver si podeis ayudarme con esto, tengo una funcion que debe d acer invisibles algunos controles, un checkbox...,es posible esto, podeis orientarme un poco??
He probado con
Form.check.visible = false;
pero no va...
| |||
hacer invisible controles A ver si podeis ayudarme con esto, tengo una funcion que debe d acer invisibles algunos controles, un checkbox...,es posible esto, podeis orientarme un poco?? He probado con Form.check.visible = false; pero no va... |
| ||||
funciona tanto en ie y en mozilla <html> <head> <title></title> <script type="text/javascript"> function ver() { //document.getElementById('celda1').style.display='b lock'; var tester = document.getElementById('Tester'); // if ( tester.style.display == 'none' ) //{ // if (document.all) tester.style.display = 'block'; //else // tester.style.display = ''; //} //else //{ //tester.style.display = 'none'; //} } function ciego() { //document.getElementById('celda1').style.display='n one'; var tester = document.getElementById('Tester'); // if ( tester.style.display == 'none' ) //{ // if (document.all) // tester.style.display = 'block'; //else // tester.style.display = ''; //} //else //{ tester.style.display = 'none'; //} } </script> <style type="text/css"> <!-- .button { font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } --> </style> </head> <body > <table width="682" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="99"><input name="tipotxt" type="radio" value="0" onClick="ciego()"> <strong>Invitado</strong></td> <td width="202"><input name="tipotxt" type="radio" value="radiobutton" onClick="ver()"> <strong>Registrado</strong></td> <td width="197"> </td> <td width="87"> </td> <td width="28"> </td> <td width="27"> </td> <td width="26"> </td> </tr> <tr valign="top" > <td colspan="7"><table width="570" border="0" cellpadding="0" cellspacing="0" id="Tester" style="display: none"> <tr bgcolor="#999999"> <td width="97"> </td> <td width="250"><strong> <input type="checkbox" name="menu122" value="32768"> uno </strong></td> <td width="223"><strong> <input type="checkbox" name="menu322" value="8"> cuatro</strong> </td> </tr> <tr bgcolor="#999999" > <td> </td> <td><strong> <input type="checkbox" name="menu6222" value="16" > dos </strong></td> <td><strong> <input type="checkbox" name="menu422" value="2"> cinco</strong> </td> </tr> <tr bgcolor="#999999" > <td> </td> <td><strong> <input type="checkbox" name="menu222" value="4"> tres</strong> </td> <td><strong> <input type="checkbox" name="menu522" value="1" onClick="habilitagrupo_grado()"> sesi</strong></td> </tr> </table></td> </tr> <tr> <td> </td> <td colspan="2"> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <p> </p> <p> </p> <fieldset class="fieldset"> <legend> <label for="ctb_field5"></label> </legend> </fieldset> <p> </p> </body> </html>
__________________ gerardo |