الأحد، 5 يناير 2014

how to check input boxes according to values

You can iterate through the array of values, then check each input based on the product ID.

list.forEach(function(item) { $('#product_'+ item).prop('checked', true);});

.forEach() documentation

.prop() documentation


View the original article here

ليست هناك تعليقات:

إرسال تعليق