PDA

View Full Version : how can i show or hide?




cute
05-17-2007, 10:57 AM
hi all,

in a web page, how can i show/hide when appropriate option selected.
for example
whenever i click the show option in html page the table should be displayed
<table>
</table>
whenever i click hide option the table should be hided.

how can i do this via js.
can any one help me..
thanks.
:)

tech_support
05-17-2007, 11:10 AM
<a href="#" onClick="document.getElementById('mytable').style.display = 'none';return false">Be gone!</a>
<div id="mytable">
<p>Hello</p>