And the w3schools site didnt give me any info on using those attributes either I tried this
<script type="text/javascript"> <!-- function ShowLanguageCode(lang) { switch(lang) { case 'C': return document.getElementById("1") = "visible"; break; default: break; } } --> </script><form name="testForm"> <p> <input type="radio" name="language" value="C" onclick="ShowLanguageCode('C')"/> C<br /> <input type="radio" name="language" value="Cplusplus" onclick="ShowLanguageCode('Cplusplus')"/> C++<br /> <input type="radio" name="language" value="Csharp" /> C#<br /> <input type="radio" name="language" value="Delphi" /> Delphi<br /> <input type="radio" name="language" value="Java" /> Java<br /> <input type="radio" name="language" value="VB" /> Visual Basic<br /> </p> </form> <table width="215" height="75" border="1"> <tr> <div id='1' hidden><td>C Code should go here</td></div> </tr> </table>
I wasnt sure whether div was for inside or outside the table so i tried both and neither worked, but I'm presuming its inside the <td> tag