if($("#FromID").valid()){ $.ajax({ type:'post', url:'/CampaignOrderRelations/save', data:{id:COId}, success:function(data){ } }); }
$("#FromID").valid()就是jquery validate 的验证