摘要: 通过数组参数的方式传递多个checkbox选中值var student = { 'info': [] };$("input[name='student']:checked").each(function (i, n) { student['info'].push(n.value);}); 这... 阅读全文
posted @ 2015-09-07 16:10 捅了个浆糊 阅读(678) 评论(0) 推荐(0)
摘要: if(dataBack.remind){ $("#isremind").prop("checked",true);}else{ $("#isremind").removeAttr("checked");} 添加的时候用prop,取消用removeAttr。问题解决了。 阅读全文
posted @ 2015-09-07 14:45 捅了个浆糊 阅读(215) 评论(0) 推荐(0)