失去焦点事件 blur()
2017-08-11 18:09
176 查看
function RestrictionWords() { $(".blur").blur(function () { var consignee_country_id = $("[name=consignee_country_id] option:selected").val(); var shipping_method = $("[name=shipping_method] option:selected").val(); var consignee_first_name = $("[name=consignee_first_name]").val(); var consignee_last_name = $("[name=consignee_last_name]").val(); var consignee_company = $("[name=consignee_company]").val(); var consignee_address1 = $("[name=consignee_address1]").val(); var consignee_address2 = $("[name=consignee_address2]").val(); if (((/FBA/i).test(consignee_first_name)) || ((/Amazon/i).test(consignee_first_name)) || ((/FBA/i).test(consignee_last_name)) || ((/Amazon/i).test(consignee_last_name)) || ((/FBA/i).test(consignee_company)) || ((/Amazon/i).test(consignee_company)) || ((/FBA/i).test(consignee_address1)) || ((/Amazon/i).test(consignee_address1)) || ((/FBA/i).test(consignee_address2)) || ((/Amazon/i).test(consignee_address2))) { if ((consignee_country_id == 115 && shipping_method == 'SFCQMITR') || (consignee_country_id == 89 && shipping_method == 'SFCQMDER')) { $("#messageDialog").html('<p><{t}>100002294<{/t}><p>').dialog("open"); } } }) }
相关文章推荐
- jquery失去焦点与获取焦点事件blur() focus()
- focus()获取焦点和blur()失去焦点事件
- jquery失去焦点与获取焦点事件blur() focus()
- 失去焦点事件 blur()
- Knockout: 实践CSS绑定和jQuery的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- input中blur失去焦点事件与点击事件冲突的解决方法
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- jquery失去焦点与获取焦点事件blur() focus()
- 失去焦点事件 blur()
- ng-blur失去焦点执行事件
- Knockout: 使用CSS绑定和event的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- div 触发失去焦点事件
- ExtJs自定义验证以及控件失去焦点触发事件
- jQuery事件函数-点击、双击、键盘按键、鼠标滑动、失去焦点、显示哪个 DOM 元素触发了事件/返回事件的类型。等
- 关于wxPython中的TextCtrl响应失去焦点事件后不能再次编辑或出现不正常现象的解决办法