Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-md-4">
- <b class="net_total" style="font-size:20px;"> </b>
- </div>
- var net_total = 0;
- $('.qty').each(function() {
- var row = $(this).parent().parent();
- var price = row.find('.price').val();
- var total = price * $(this).val() - 0;
- row.find('.total').val(total);
- });
- $('.total').each(function() {
- net_total += ($(this).val() - 0);
- });
- $.ajax({
- url:test.php,
- type:'POST',
- data: {net_total: net_total},
- success: function(){
- $('.net_total').html("Total : $ " + net_total);
- },
- });
- }
Add Comment
Please, Sign In to add comment