|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I would like to hide some rows in a table until a user clicks the expand view button and then minimize view should rehide the expanded data??
Thanx for your help. |
|
#2
|
|||
|
|||
|
Code:
<html>
<head>
<style>tr#hide{display:none}</style>
<script>
function hide()
{document.getElementById('hide').style.display = 'none'}
function show()
{document.getElementById('hide').style.display = 'block'}
</script>
</head>
<body>
<table>
<tr><td onClick=show()>[show]</td></tr>
<tr id=hide><td>Hidden</td></tr>
<tr><td onClick=hide()>[hide]</td></tr>
</table>
</body>
</html>
|
|
#3
|
||||
|
||||
|
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > how to use CSS style hidden? block? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|