Related Post:
- Highlight label associated with text box using jQuery
- Difference between jQuery text() and html() functions
- Set innerText using jQuery
$(document).ready(function () {
var nCost = $('#spnCost').html();
var nSellingPrice = $('#spnSellingPrice').html();
var nProfit = parseFloat(nSellingPrice) - parseFloat(nCost);
$('#spnProfit').html(nProfit);
});
See Complete Code
Feel free to contact me for any help related to jQuery, I will gladly help you.
No comments:
Post a Comment