Menu
hi
i have this jquery function
$(function() {
$(“#Text3”).change(function() {
var add = 0;
$(“.amt”).each(function() {
add += Number($(this).val());
});
$(“#total”).text(“Sum of all textboxes is : ” + add);
});
});
<input id=”Text1″ class=”amt” type=”text” /><br />
<input id=”Text2″ class=”amt” type=”text” /><br />
<input id=”Text3″ class=”amt” type=”text” /><br />
<p id=”total”>
From this function i will display the sum of this 3 boxes.
What is need is to format the result.