添加按钮事件:
<button id="remove" type="button">Reomve Selected Color</button>
然后添加触发后的事件:
$("#remove").on("click", function () {
$('table tr').has('input[name="vehicle"]:checked').remove()
})
这样就可以删除掉表格中的一行了。
添加按钮事件:
<button id="remove" type="button">Reomve Selected Color</button>
然后添加触发后的事件:
$("#remove").on("click", function () {
$('table tr').has('input[name="vehicle"]:checked').remove()
})
这样就可以删除掉表格中的一行了。