checkBox allselect
<br>
<input type="checkbox" name="checkNo" id="sAll"><br>
<input type="checkbox" name="checkNoS" class="selectable" value="1">1<br>
<input type="checkbox" name="checkNoS" class="selectable" value="2">2<br>
<input type="checkbox" name="checkNoS" class="selectable" value="3">3<br>
<input type="checkbox" name="checkNoS" class="selectable" value="4">4<br>
</body>
<script type="text/javascript">
/*checkbox全选*/
$("#sAll").click(function(){
var checked = $(this).attr("checked");
$(".selectable").each(function(){
var subChecked = $(this).attr("checked");
if (subChecked != checked)
$(this).click();
});
var checkvalue= $("input[name!='checkNo'][type='checkbox'][checked='true']").map(function(){
return $(this).val();
}).get().join(",");
})
</script>