Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidding form's element

Status
Not open for further replies.

larryman

Programmer
Jun 16, 2000
63
0
0
US
Hello,

Please i need help on how to hide form's element and to make it appear in response to user event.



Oysterbar ride to success. Keep Riding
 
use layers... show and hide them as u please...


Known is handfull, Unknown is worldfull
 
you can use the visibility style property or the display property

<a href=&quot;#&quot; onclick=&quot;Div1.style.visibility='visible';&quot;>Show
Div1</a><br>
<a href=&quot;#&quot; onclick=&quot;Div2.style.display='block';&quot;>Show Div2</a>
<div style=&quot;visibility:hidden&quot; id=Div1>
hello
</div>
<div style=&quot;display:none&quot; id=Div2>
hello
</div>

Div1.style.visibility works in IE
document.getElementById(&quot;Div1&quot;).style.visibility works for netscape 6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top