jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes column hide mozilla display  javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "column hide mozilla display  javascript" Watch "column hide mozilla display  javascript" New topic

column hide mozilla display javascript

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
How di i hide a table column in mozilla javascript.i am able to hide it either by display : "none" or visibility:"hidden"
but the problem is in re-showing the same.

td.styledisplay="table-column";//does it work?? td.style.visibility="visible";
[ December 27, 2006: Message edited by: Bear Bibeault ]

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

I got the References of these two elements of style with following keywords those you can use with in this property.


hope its helps.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
document.getElementByID.style.display="none" should work out..

<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63352

As Neerav pointed out, display is the rule you seek, not visibility.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599

Above code works fine when i use tr id = hide_someindex. and it works fine in both IE and Firefox.

However when i use above code for td id = hide_someindex , it gives trouble in Firefox.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
please change the onlod event ('a' intentionally removed due to some error.) before trying the code in browser.
I agree. Here's the link: http://aspose.com/file-tools
subject: column hide mozilla display javascript
jQuery in Action, 3rd edition