html - Moving table rows in a particular pattern with jQuery -


I have a table with basically the rows.

  • General row
  • General row
  • Summary row
  • Normal line
  • Summary row
  • Normal line
  • Normal line
  • Summary row
  • So basically the x "normal lines", Which will always be followed by a "summary line", the summary lines display the set of data in normal lines, I calculate the set on the runtime, A "Summary Lines" are naturally held after the general lines that they do overall.

    What I need to do is, at runtime, before "normal lines" to move each "abstract line".

  • Normal line
  • Normal line
  • Normal line
  • Normal line
  • General line
  • Li> General row
  • Summary row
  • Normal line
  • Normal line
  • > .. etc .. P>

    So give them the appropriate CSS classes, say class = "summary" and class = "normal", I've written a selector query that matches each "summary row", and

    The most elegant jquery ras What is that

    See the following thick demos I start with the last summary row and move it after the previous summary row Of course, there is not a previous row in the summary first, so you need to check it and need to move it to the first line.


    Comments

    Popular posts from this blog

    How to Create Master-Details view using Asp.Net MVC framework -

    delphi - Mouseover hint for TChart series value -

    c++ - Linux and clipboard -