时间:2021-07-01 10:21:17 帮助过:10人阅读
<input type="button" id="tianjia" value="保 存" class="btn1" onClick="nullCheck(this)"/>
<script>
function nullCheck(obj)
{
......//这里写你所需功能的代码
}
</script>
<input type="checkbox" name='agentType' id="exclusiveAgenter" value="exclusive" onchange="clickAgenter(this)">
function clickAgenter(obj){
if($(obj).attr("checked")=="checked"){
$("[name='agentType']").removeAttr("checked");//取消全选
$(obj).attr("checked","checked")
}
}