问题描述
- 火狐浏览器里面错误信息不提示。Ie谷歌都好用
-
//验证所选的日期是否在停留时间范围内 function validateServiceDate(id){ var serviceDate = $("#serviceBeginDate"+id).val(); $.ajax({ url:'${ctx}/reserve/validateServiceDate', type:'post', async:false, data:'serviceDate='+serviceDate, success:function(result){ if(result=='false'){ alert("<fmt:message key='tourismProductSelect.dialogBox.product.dateRange.error'/>"); $("#serviceBeginDate"+id).focus(); $("#serviceBeginDate"+id).attr("style","color:red;"); if($("#packType").val()=='0'){ $("#noproductId"+id).attr('checked',false); }else{ $("#productId"+id).attr('checked',false); } return false; }else{//正常可选 $("#serviceBeginDate"+id).attr("style",""); } } }); }
解决方案
按照firebug看下是不是脚本出错了。
时间: 2024-08-27 02:49:22