チェックボックスをオフにするとチェックボックスをオフにします。チェックボックスをオフにします。
$("#search_list").find('.mselect input:checked').each(function(index, ele) {
var prodId = $(this).val();
console.log($(this));
//if($(this).is(':checked')){
//if($(this).length) {
$(productList).each(function(key, value) {
console.log("ohh"+value);
if(prodId == value){
$(this).prop('checked', false);
console.log($(this));
console.log("unchedk"+value);
}
});
//}
});
私の間違いは何ですか?
(削除コメントコード)のような変数にあるチェックボックスの
$(this)
を割り当てます。 – Tony