Jquery 表单 --我已同意**协议进行下一步功能实现
前端代码
<div id="signedAgreement">
<input type="checkbox" id="cr" style="-webkit-box-shadow: 0 0 0 #fff;-moz-box-shadow: 0 0 0 #fff;">
<span style="text-decoration:underline;cursor: pointer">我已阅读并同意签约家庭医生协议</span>
</div>
js代码
// 如果选中 - 进行下一步
if($("#cr").is(":checked")){
}else{ // 进行拦截校验
alert('请勾选我已阅读并同意签约家庭医生协议按钮');
}