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!

make an object invisible

Status
Not open for further replies.

DaneshD

Programmer
Dec 10, 2004
19
0
0
SE
Hi,

I have a form with objects like text box, radio button, check box, etc. I want to write a function and run it when a button clicks. The function should make other objects (like radio buttons) visible and another function should make they invisible in same form. How can I do that ? I don't see any visible property to set it as true or false. Can anybody help ?

Regards,

Danesh

 
Set the objects "display" style to "none" to hide it, or "block" / "inline" (depending on the element type) to show it:

Code:
obj.style.display = 'none';

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Its working now. Thank you very much Dan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top