Hiding Row (javascript-php-html-css)

coool's Avatar
Go4Expert Member
what do you think of this code? - it's not working what's wrong with it !

PHP Code:
<script type="text/javascript">
function Show(e)
        if(document.getElementById(e).style.display == 'none')
                document.getElementById(e).style.display = 'block';

<tr id='criteria1'>
        <?echo CriteriaRow();?>
 //this function have some form elements/html similar to the picture in one of my posts

              <input type="button" value="Display Criteria" onClick="Show('criteria1');">
Code: css

display: none;

when i click on the button.. nothing appear !
pradeep's Avatar, Join Date: Apr 2005
Team Leader
You'll have to put the style for the TR inline, like this

HTML Code:
<tr id='criteria1' style="display:none">