1 回答
TA貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超9個(gè)贊
去檢查
$("#topic").prop("checked", true);
取消選中
$("#topic").prop("checked", false);
編輯[包含稍后詢問的代碼]
if(response.status=="1")
{
response.data.forEach(function(item, index) {
....
row += "<td> <input type=checkbox id=topic" + index + "name=example2 class=td-check-box> </td>";
....
$("#tableid").append(row);
if (item.add_topic_priv =="Y")
{
$("#topic" + index).is(":checked");
}
})
}
},
- 1 回答
- 0 關(guān)注
- 139 瀏覽
添加回答
舉報(bào)
