Change table row display property

Posted by Idsa on Stack Overflow See other posts from Stack Overflow or by Idsa
Published on 2010-03-30T21:03:06Z Indexed on 2010/03/30 21:13 UTC
Read the original article Hit count: 485

Filed under:
|

I have an html page with a table that contains a hidden row:

<table>
  <tr id="hiddenTr" style="display:none">
  </tr>
</table>

I need to make it visible at client side using jquery. I tried this

$('#hiddenTr').show();

and this

$('#hiddenTr').css('display', 'table-row');

Both implementations don't work for me. Furthemore the second one is not crossbrowser.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery