Frantisek,

>I am looking to implement collapsible and toggable table rows as you
>can see in this demo:
>
>http://www.mortgageworkout.co.uk/demo.html
>
>It is broken for two reasons:
>
>1: Colspan does not work.
>2: I have a problem with relationships of elements.
>
>My current code is:
>
>$(document).ready(function(){
>$('.description').hide();
>$('a.details').click(function() {
>  $(this).parents('table:first').find('.description').toggle(400);
>  return false;
>});
>});
>
>I want to toogle the row classed "description", when user clicks the
>link classed "detail" in the row above. Animation would be nice, but
>it is optional.
>
>Could you help?

I've just finished something that works with a slightly modded version of
the Tablesorter plug-in:

http://www.pengoworks.com/workshop/jquery/tablesorter/tablesorter.htm

You do not need the tablesorter plug-in to use the collapsible code though.

-Dan

Reply via email to