function(){
if(this.checked){
$("input[@name='recordId1']").each(function(){this.checked=true;});
}else{
$("input[@name='recordId1']").each(function(){this.checked=false;});
}
}
);
<td>
<div align="center">
<input id="selAll" name="selAll" type="checkbox" />
全选
</div>
</td>
-------------------------------------
<td align="center">
<input id="recordId1" name="recordId1" value="${item.userId}"
type="checkbox"
<c:if test="${fn:contains(custgroup.groupvisible ,item.userId)}">
checked
</c:if>
>
</td>
raido选中
$("input[type=radio][value='${hrSchduleing.userchoose}']").attr("checked",'checked');
$.ajax({
dataType:'json',
url:'/crm/finance/accdetails.do?method=salaryGrant',
data:datas,
type:'post',
async :false,
error:function (XMLHttpRequest, textStatus, errorThrown) {
$.messager.alert('系统提示',errorThrown,'error');
},
success: function(res){
$.messager.alert('系统提示',res.retMsg,'info');
$("#ruzhang_dialog").dialog('close');
$("#salaryShow1").datagrid('reload');
$("#salaryShow2").datagrid('reload');
}
});
5 启动
var formdata = {"recvers":$("#recvers").val(),"mmstitle":$("#mmstitle").val(),
"mmsfilename":$("#mmsfilename").val(),
"mmstxtcontents":$("#mmstxtcontents").val(),
"istime":$("#istime").val(),
"sendtime":$("#sendtime").val(),
"msgtype":$("#msgtype").val(),
"mmsconnectid":$("#mmsconnectid").val()
};
$.ajax({
dataType:'json',
url:'${ctx}/crm/sms.do?method=smsSendForMms',
data:formdata,
type:'post',
async :false,
error:function (XMLHttpRequest, textStatus, errorThrown1) {
$.messager.alert('系统提示',errorThrown1,'error');
},
success: function(res){
$.messager.alert('系统提示',res.retMsg,'info');
}
});