1// HazaaZOOZ - jquery - How to get text from input Javascript >> jquery
2
3$(document).ready(function() {
4 $('.add').click(function() {
5 var value = parseFloat($('#total').text()) + parseFloat($(this).data('amount'))/100
6 $('#total').text( value.toFixed(2) );
7 });
8})