http://jsfiddle.net/kcd6r/
how do i calculate total rel value? if one checkbox selected the total will be updated automatically
Hope this helps:
$("input[type=checkbox]").change(function(){
  recalculate();
});
function recalculate(){
    var sum = 0;
    $("input[type=checkbox]:checked").each(function(){
      sum += parseInt($(this).attr("rel"));
    });
    alert(sum);
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With