<tr> <input type="radio" id="Kind" name="kind" value="0" onclick="obj=document.getElementById('Period'); obj2=document.getElementById('Rate');if(this.checked=true) {obj.disabled=false;obj2.disabled=true;}"/> terminowa <input name="kind" type="radio" id="Kind" value="1" onclick="obj=document.getElementById('Period'); if(this.checked==true) obj.disabled=false;" /> </tr> <tr> <td> <label> <input type="radio" id="Rate" name="rate" value="0" /> stałe</label> <label> <input type="radio" id="Rate" name="rate" value="1" /> zmienne</label> </td> </tr> <tr> </tr> <tr>
Powyższy kod działa poprawnie ukrywajac menu 'Okres lokaty' gdy radio buttony 'terminowa' lub 'dynamiczna' sa zaznaczone.Chcialbym jednak by po zaznaczeniu radio 'dynamiczna' radio button 'stale' stal sie nieaktywny....i tu pojawia sie problem, bo kod choc wyglada poprawnie, wcale a wcale nie ma ochoty uczynic mi tej uprzejmosci i poprawnie zadzialac.PROSZE WIEC O POMOC kogos, kto ma wieksze rozeznanie w JS.Bardzo dziekuje!!!