appearing rows in tables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have been told by a freind that i need a java script for this to work but
if he is right i dont have a clue how to do it.

im am wonder if it is possible to have another row appear in a table when a
certain option is picked on a combo box.

thanks for any help

stu
 
Hi there, stu
This code works.

You may have to modify it to put the 'onclick=' in a combo box rather than
just two buttons as I have coded it

I also note that the space required for the hidden row is not removed - the
row is still there, merely blank.

<html>
<head>
<script type="text/javascript">
function showhide(elmnt,state)
{ document.all(elmnt).style.visibility=state }
</script>
</head>

<input type="button"
onclick="showhide('cell2','visible');">
Show

<input type="button"
onclick="showhide('cell2','hidden');">
Hide
<body>

<table border>
<tr>
<td>Cell 1 </td>
</tr>

<tr id="cell2" style="visibility: hidden ;">
<td>Cell 2 </td>
</tr>
</table>
</body>
</html>

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
i have been told by a freind that i need a java script for this to
work but if he is right i dont have a clue how to do it.

im am wonder if it is possible to have another row appear in a table
when a certain option is picked on a combo box.

thanks for any help

stu


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
Back
Top