I am trying to append a new row in a table with a variable
I used this line of code with no luck
$('.view-payments table').append('<tr><td>Amount</td><td>' grandTotal '</td></tr>');
What is the problem?
I am trying to append a new row in a table with a variable
I used this line of code with no luck
$('.view-payments table').append('<tr><td>Amount</td><td>' grandTotal '</td></tr>');
What is the problem?
it should be
$('.view-payments table').append('<tr><td>Amount</td><td>'+grandTotal+'</td></tr>');