Freelancer: jagdishidhate
Share:
Report Entry

Add this to end of the page before body tag

//Code does not fit in description so min version. jQuery(document).ready(function(){function e(){var e=0;a.each(function(){e+=parseInt(jQuery(this).val())});var n=jQuery("");e>=t?(a.each(function(){var e=jQuery(this);e.val()0?r.prev("input[type=checkbox]")[0].checked=!0:(r.val(0),r.prev("input[type=checkbox]")[0].checked=!1);var i=0,c=this;a.each(function(){this!=c&&(i+=parseInt(jQuery(this).val()))}),i+n>t&&jQuery(this).val(t-i),e()}),r.on("click",function(){var r=jQuery(this);this.checked&&jQuery("input:checked").length>t&&(event.preventDefault(),event.stopPropagation(),r.next(".qty").val(0)),e()})});


                                                                                                            Contest Entry #                                        8
                                     for                                         bundle products

Public Clarification Board

  • jagdishidhate
    jagdishidhate
    • 6 years ago

    add it to body tag

    • 6 years ago
  • jagdishidhate
    jagdishidhate
    • 6 years ago

    Source code is at below link https://www.dropbox.com/s/zdbx484aejwhuj3/3-pack.js?dl=0

    • 6 years ago