95
rated 0 times
[
102]
[
7]
/ answers: 1 / hits: 21870
/ 13 Years ago, mon, february 6, 2012, 12:00:00
I have some code that shows a tables row when something is clicked. So, the row has it's style attribute disabled, see below:
HTML
<tr id='Asset' class='rrtr' style='display:none;'>
The user clicks and fires the Javascript, which works fine:
Javascript
document.getElementById(Asset).style.display = 'block';
However, the style of the row isn't in line with rest even though it's class attributes are set to 'rrtr' like the rest.
If I turn off 'display:none;' on the row and run it showing, the format is fine.
Any ideas?
More From » html-table