I am looking at a JS file from a colleague who has since left my work place so have no access to them.
//populate the inheritance table but remove all rows first
$("#reportBeneficiariesTable tbody").html("");
$(".saved-beneficiary").each(function() {
$( "#reportBeneficiariesTable tbody" ).append( "<tr style=\"height:40px\">" +
"<td>"+$(this).find(".name").html()+"</td>" +
"<td>"+$(this).find(".relation").html()+"</td>" +
"<td>"+$(this).find(".inheritanceVal").html()+"</td>" +
"<td>"+$(this).find(".taxableInheritance").html()+"</td>" +
"<td>€"+$(this).find(".taxLiability").html()+"</td>");
I am trying to use the variable for .name as a span class to bring in the input Name further down the page? I thought this could be achieved by this:
$('.name-1').html(name);
But doesn't seem to work? Any help would be appreciated