Monday, May 21

Table row hide and show using jquery issue.

The other day, I encountered a problem in dynamically showing and hiding table rows using jquery. In IE it worked fine, but in chrome and firefox, the UI would break. When I would display = "block", the first th would wrap and contain the entire tr.
Searching on google, I stumbled upon this post  which helped solve the issue.
The solution is simple but way to difficult to guess.
We could just say display = "" and chrome or firefox will reset it to table-row. This does not affect IE though.

Be the first one to Comment!!!

Post a Comment