Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Hiding a form/table


Message #1 by "Peter Riley" <priley@t...> on Tue, 11 Feb 2003 09:31:46 -0000
Use element.style.display =3D "none"; for the elements (e.g. table rows,
divs etc) you want to hide,
and element.style.display =3D "block"; for the ones you want to show.

<div style=3D"display:none">Content</div> in CSS...


/Robert


-----Original Message-----
From: Peter Riley [mailto:priley@t...]
Sent: den 11 februari 2003 10:32
To: JavaScript HowTo
Subject: [javascript_howto] Hiding a form/table


Hi

I have a page with a form at the top that filters a database, with the
output below.  Works fine, but the filter takes up a lot of the screen
and I would like to be able to hide/unhide it with a button click, a
little like the Page Options dialog on the msdn pages, so users can see
data more clearly (if only ...) as the data would then move up to the
vacated space.  So the usual js dropdown menu code doesn't appear to be
much help.

I have searched through the usual js resources without finding any
suitable code.  Any ideas please?

Peter Riley FRICS
Taylor Riley Chartered Surveyors
www.taylorriley.co.uk



  Return to Index