Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
html/css/js challenge - cross browser hide/show table row
#1
i'm trying to come up with a way to hide/show table rows cross browser. FF wants the table row to be set "display:table-row" while IE (7, at least) wants "display:block".

displayed here - http://knowfear.net/~mattkime/test6/
hide - hides a row
show IE - does display:block
show FF - does display:table-row
try/catch show - tries display:table-row and if it fails, does display:block

anyone else tackle this one?
Reply
#2
grrrrr...jquery does it like this -

it stores the display value before hiding. then it uses that value when it shows.

how i can convince my team that jquery is good for us.
Reply
#3
CSS tables aren't supported in IE. You're going to have to use HTML tables and hide and show those rows. Probably via class or ID.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)