使用jquery 怎么样取得
中所有checkbox? 问题:单击全选 怎么样取得<table>……</table>所有的checkbox?
html如下:
<table style="border-bottom: solid 1px #eee; width: 100%">
<tr>
<td>
<div style="color:#999">
<span style="cursor:hand" onclick="chkAll()">全选</span>
</div>
</td>
</tr>
<tr>
<td>
<input id="input1" type="checkbox"><input id="chk1" type="checkbox"><input type="checkbox">
</td>
</tr>
</table>
<script type="text/javascript">
function chkAll()
{
//使用jquery 这里要怎么写,才能取得<table>……</table>所有的checkbox
}
</script>
...全文
用AI写文章