I have a table containing rowspan (Merged Rows), I need to split that merged rows into individuals and put the rowspan value in last td.
NOTE: In my cod
Try this:
$('table td').each(function() {
var _parent_tr = $(this).parent();
var rowspan = $(this).attr('rowspan');
var rowspanVal = $(this).attr('rowspan');
$(this).removeAttr('rowspan');
if (rowspan && rowspan>1) {
for(var i=1;i<=rowspan;i++){
_parent_tr.append(""+rowspanVal+" ");
}
}
});
#
(Invested Assets)
(Admitted Assets)
Pasivos (Liabilities)
Pasivos (Liabilities)
Pasivos (Liabilities)
Pasivos (Liabilities)
Pasivos (Liabilities)
Pasivos (Liabilities)
(NAIC Code)
( Domestics Insurers)
(Aggregate Reserve for Life Contracts)
(Reserve for Life Contract Claims)
(Aggregate Reserve for Accident and Health Contract Claims)
(Reserve for Accident and Health Contracts Claims)
(Other Liabilities)**
(Total Liabilities)