This is my html:
<div id="final_total_amt"></div>
This is my js:
var final_item_total = 'Test!';
$('#final_total_amt').text(function(final_item_total) {
return final_item_total;
});
I know this code works,
$('#final_total_amt').text(final_item_total); // Out: Test!
But i want to show 'Test!' the jQuery code with the function(final_item_total)