Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Can anyone tell me if there is a way to mask/unmask or set visible/not elements in a web page like select options and input text?
Thanks in advance.

Use the "display" style property.
Inline you would use it like this: style="display:none;"
However since I am assuming you want this to be dynamic, you would need to do it in JavaScript like this:
element.style.display = "none";
or
element.style.display = "block";
There are many more values that you can use for that property as well. Here is more info on the display property: http://www.w3schools.com/css/pr_class_display.asp
Just be carefull that you test in various browsers as some browsers handle differnt values differently.
Michael J

be very careful about 'hiding' text on a page as search engine spiders may not like it penalize your site's ranking
serge

![]() |
dirty server data in IE &...
|
Search engine for CMS??
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |