- jquery auto compute product of two value from text inputs
- $('.toAdd').live('change', function() {
- var total = 0;
- $('.toAdd').each(function () {
- var v = $(this).val();
- total *= Number(v);
- });
- $('#total_amount').val(total);
- });
- total += Number(v);
- total *= Number(v);
- var total = parseInt($('#txt_qty').val()) * parseInt($('#txt_price').val());