kiedy klikam na radio name="zm_st" nie "odznacza" się radio name="st_type"
coś jest nie tak w tej funkcji ale jestem zielony w jscript..
pomożecie ?
<input id="proc1_wtstatTrue" type="radio" name="wtstat" value="t""> Pozytywny <input id="proc1_wtstatFalse" type="radio" name="wtstat" value="f"> Negatywny <input id="proc1_nrKeepTrue" type="radio" name="zach" value="t"> Zachowany <input id="proc1_nrKeepFalse" type="radio" name="zach" value="f"> Zmieniony
<html> <head> <script type="text/javascript"> function unselectRadios() { inputy = document.getElementsByTagName( 'input' ); for ( i = 0; i < inputy.length; i++ ) { if ( inputy[ i ].hasAttribute( 'type' ) ) { // dodany warunek ---8<--------------- if ( inputy[ i ].type == 'radio' ) { inputy[ i ].checked = false; } // ---------------8<--- } } } </script> </head> <body> <form id="formularz"> <hr /> <input type="button" onclick="unselectRadios()" /> </form> </body> </html>