<?php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Generator</title> <style type="text/css"> </style> <script language="JavaScript" type="text/javascript"> function pokaz(Film1_id){ if(element_id == Film1_id) { elementy[i].style.display = 'block'; } else { elementy[i].style.display = 'none'; } } </script> </head> <body> <input type="radio" name=grafika value="pokaz" onClick="document.getElementById('Film1').style.display='block';"> <strong>Film1</strong> <input type="radio" name=grafika value="Gry" onClick="document.getElementById('Gry').style.display='block';"><strong>Gry</strong> <div style="display: none" id="Film1"> <strong>Gatunek: </strong></td><td><input type="text" size="30" maxlength="36" name=Gatunek value=""> </div> <div style="display: none" id="Gry"> <strong>Wydawca: </strong></td><td><input type="text" size="30" maxlength="36" name=Wymagania value=""> </div> </body> </html> ?>
Problem polega na tym że jak kliknę na Film1 a potem na Gry to wyświetlają mi się 2 pola.
Chcę zrobić tak aby Przy zaznaczeniu 2 opcji pierwsze pole znikło a pokazało się drugie
Z góry dziękuję za pomoc
Pozdrawiam