jquery validate如何不提交表单就做验证(ajax提交数据)
if($("#FromID").valid()){
$.ajax({ type:'post', url:'/CampaignOrderRelations/save', data:{id:COId}, success:function(data){ } }); }
$("#FromID").valid()就是jquery validate 的验证
if($("#FromID").valid()){
$.ajax({ type:'post', url:'/CampaignOrderRelations/save', data:{id:COId}, success:function(data){ } }); }
$("#FromID").valid()就是jquery validate 的验证