var cmpy_gb_size = ${selCmpyGbList?size};
var cmpy_gb_arr = json.detail.cmpy_gb;
console.log("cmpy_gb_size : " + cmpy_gb_size);
if ( cmpy_gb_arr.length >= cmpy_gb_size) {
for (var i = 0; i < cmpy_gb_size; i++) {
for (var j = 0; j < $("input[name=cmpy_gb]:checkbox").length; j++) {
if ( i == j && cmpy_gb_arr.charAt(i) == '1' ) {
$("input[name=cmpy_gb]:checkbox")[j].checked = true;
}
}
}
}
$("#area_gb option[value="+json.detail.area_gb+"]").attr("selected", "true");
댓글 없음:
댓글 쓰기