Hi
How can I use a javascript to show or hide several table rows that have the same id?
I would like to have a table like this:
<table>
<tr id="heading"><td><a href="javascript:void(0)" onclick="ShowHide('jan')>X</a>January</td></tr>
<tr id="jan"><td>1</td></tr>
<tr id="jan"><td>2</td></tr>
<tr id="jan"><td>3</td></tr>
<tr id="heading"><td><a href="javascript:void(0)" onclick="ShowHide('feb')>X</a>January</td></tr>
<tr id="feb"><td>1</td></tr>
<tr id="feb"><td>2</td></tr>
<tr id="feb"><td>3</td></tr>
</table>
Regards
</Morten>
</Morten>
How can I use a javascript to show or hide several table rows that have the same id?
I would like to have a table like this:
<table>
<tr id="heading"><td><a href="javascript:void(0)" onclick="ShowHide('jan')>X</a>January</td></tr>
<tr id="jan"><td>1</td></tr>
<tr id="jan"><td>2</td></tr>
<tr id="jan"><td>3</td></tr>
<tr id="heading"><td><a href="javascript:void(0)" onclick="ShowHide('feb')>X</a>January</td></tr>
<tr id="feb"><td>1</td></tr>
<tr id="feb"><td>2</td></tr>
<tr id="feb"><td>3</td></tr>
</table>
Regards
</Morten>
</Morten>