Show table row (tr) using css
Internet Explorer / Firefox Issues, Technology November 4th, 2010I was working on a piece of code in which I needed to hide a row (’tr’) on click of a link & show it again on a similar event. Tried to achieve that using the usual display:none & display:block methods.
That method gave me problems across browsers. Then I read somewhere that to show a tr using css, we could use:
style.display = ‘table-row’
This worked, but not across all browsers. Finally read somewhere that if we use:
style.display = ”
This would make the browser take the default values whether it’s table-row or display:block. This one worked for both IE & Firefox.
Related posts:





Recent Comments