what do you think of this code? - it's not working what's wrong with it ! PHP: <script type="text/javascript"> function Show(e) { if(document.getElementById(e).style.display == 'none') { document.getElementById(e).style.display = 'block'; } } </script> <tr id='criteria1'> <?echo CriteriaRow();?> //this function have some form elements/html similar to the picture in one of my posts </tr> <input type="button" value="Display Criteria" onClick="Show('criteria1');"> Code: #criteria1 { display: none; } when i click on the button.. nothing appear !
You'll have to put the style for the TR inline, like this HTML: <tr id='criteria1' style="display:none">