I also did noticed that TR's toggled get not so valid markup.
Code I used is this:
jQuery.fn.outer = function() {
return $($('<div></div>').html(this.clone())).html();
}
$(function() {
$('tr.parent')
.css("cursor", "pointer")
.attr("title", "Click to expand/collapse")
.click(function() {
$(this).siblings('.child-' + this.id).toggle(function() {
alert($(this).outer());
});
});
$('tr[class^=child-]').hide().children('td');
});
Donwload http://dbj.org/h.htm and try this ... If you have time that
is.
--DBJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---