1、选择table中第一列的checkbox
$("table tr td:first-child input[type='checkbox']")
2、选择table中所有checkbox
$("table input[type='checkbox']")
3、判断table中所有checkbox是否有选中项
$("table input[type='checkbox']:checked")length>0
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3