Skip to content Skip to sidebar Skip to footer

Group Rows In A Variable

I have our client data in following format :

Solution 1:

You can use .add to add elements to a jQuery collection:

var combined = $("#Grp1").add($("#Grp1").nextUntil("#Grp2"));

An equivalent way is with .addBack:

var combined = $("#Grp1").nextUntil("#Grp2").addBack();

Post a Comment for "Group Rows In A Variable"

HEAD 1 HEAD 2 HEAD 3