document.getElementById("pnlSearch").style.display = "block";
document.getElementById("pnlSearch").style.display = "none";
document.getElementById("pnlSearch").style.visibility = "visible";
document.getElementById("pnlSearch").style.visibility = "hidden";
document.getElementById('btnSearch').disabled =false;
document.getElementById('btnSearch').disabled =true;
From http://stackoverflow.com/questions/133051/what-is-the-difference-between-visibilityhidden-and-displaynone : (See link for a short-but-great example) :
display:none means that the the tag in question will not appear on the page at all (although you can still interact with it through the dom). There will be no space allocated for it between the other tags. Visibility:hidden means that unlike display:none, the tag is not visible, but space is allocated for it on the page.
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
-
▼
2010
(42)
-
▼
November
(9)
- Good topics related to AJAX
- AJAX Toolkit examples here
- Good color combination for a Heading
- CSS Inheritance
- http://www.onlinetools.org/
- Javascript examples: style.display & style.visibil...
- Difference between DIV and SPAN tags
- Validate your CSS, XHTML; CSS Quirks
- Good tutorial to learn about DIV, CSS (real HTML s...
-
▼
November
(9)
No comments:
Post a Comment