Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.chkbox').click(function(){
- var sum=0;
- $(".ordertable input:checked").each(function() {
- var priceofthis = $(this).parents('.ordertable').find('.chkprice').text();
- var nameid = $(this).parents('.ordertable').find('.nameid').text();
- var quan = $('.quantity').val();
- var mulprice = Number($(this).val()) * Number(priceofthis);
- sum=Number(sum)+Number(mulprice);
- $.post('<?php echo $this->Html->url('/transactions/set_quantity') ?>',{quantity:quan,mulprice:mulprice,nameid:nameid},function(reply){
- alert(reply);
- });
- });
- $('#hash').html(sum);
- });
Add Comment
Please, Sign In to add comment