Rolf, I think the strange results occur in Firefox because it wants
all <tr> elements to have display:table-row but the .slideX()
and .show/hide(speed), etc. methods use display:block
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 20, 2007, at 9:09 PM, rolfsf wrote:
by the way, I do notice that if I use .slideToggle instead
of .toggle I get
strange results... not sure why.
Kristinn Sigmundsson wrote:
ok So something like this almost(?) does it,
$(".collapse_group[a]").click( function () {
$(this).parent().siblings("tr").slideToggle("fast",
function() {
$(this).each( function() {
if ($(this).css("display") == "block")
$(this).css("display", "");
});
});
});
It is wierd though, sometimes it works and sometimes not, and when
it's not working alot of extra padding/margin is added to the bottom
of the groupelements...
I've also tried this without several tbody's (thought this might be a
incorrect markup quirk) but it's the same thing, hope that someone
could shed some light on this, got me interested :)
Oh and btw I'm using FF1.5.0.9 (it all works without problems in IE7,
no need for the display "fix" there)
///Kristinn
--
View this message in context: http://www.nabble.com/accordion-table%
2C-instead-of-an-accordion-list-menu--tf3264032.html#a9074275
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/