发布于 2013-10-16 08:32:30
为此使用javascript,您可以让表单具有JS函数的触发器。
onsubmit="return checkForm()"
该功能将包括如下内容:
function checkForm(){
if(!document.getElementById('checkboxID').checked){
document.getElementById('termsAndConditionsError').show();
return false;
}
else
{
return true;
}
}
有些人玩这个会帮你处理的。
https://stackoverflow.com/questions/19336368
复制