Well, it seems that visibility: collapse can also be used in IE. I use it and it works in both IE and Firefox. I donβt know about other browsers except these two.
I have done the following:
HTML:
<table class="intValidationTable">
<tr class="rangeTR" style="visibility: collapse;">
<tr class="listTR" style="visibility: collapse;">
Javascript + jQuery:
var rows = $('table.intValidationTable tr');
var rangeTR = rows.filter('.rangeTR');
var listTR = rows.filter('.listTR');
rangeTR.css("visibility", "visible");
listTR.css("visibility", "collapse");
That should work!
Darkknightfan
source share