1
我用两个复选框创建了验证。如何一次两次验证两次结果
两个验证与JavaScript的
工作的罚款让我告诉你我的代码
javascipt的
function Validation_agree(){
if(document.form1.agreed1.checked==false)
{
$(".agreement_main").show();
return false
}else{
$(".agreement_main").hide();
}
if(document.form1.agreed2.checked==false)
{
$(".agreement_terms").show();
return false
}else{
$(".agreement_terms").hide();
}
}
形式就像
<div class="checkme">
<label><input type="checkbox" value="" name="agreed1" />I have discussed all of the order details above and the customer is happy to proceed</label>
<br />
<div class="alert agreement_main" style="display:none;">Please confirm you have informed the customer of the T&Cs</div>
</div>
<div class="redNote">
<label><input type="checkbox" value="" name="agreed2" />I have informed the customer where they can find the T&C’s on the BT.com website</label></p>
<div class="alert agreement_terms" style="display:none;">Please confirm you have informed the customer of the T&Cs</div>
</div>
<input type="submit" value="submit order" /></div>
</form>
的问题是。其中一个正在处理另一个
当按提交按钮显示第一个验证错误消息。我想提出两个验证检查一次
任何一个可以帮助我,请 在此先感谢
我面临类似的问题,我的应用程序之一:( – Muhammed 2011-12-16 17:10:25