摘要: $(document).ready(function () { //全选checkbox $("#selectAll").click(function () { var checked = $(this).prop("checked"); $(":checkbox").prop("checked", checked); }); ... 阅读全文
posted @ 2016-04-23 15:49 peak-c 阅读(248) 评论(0) 推荐(0) 编辑
摘要: /**获取选中的checkbox值*/ function getChecked(){ var ids = ""; $("input:checkbox[name='id']:checked").each(function(i){ if(0==i){ ids = $(this).val(); ... 阅读全文
posted @ 2016-04-23 15:04 peak-c 阅读(3187) 评论(0) 推荐(0) 编辑