失去焦点事件 blur()
2017-08-11 18:09
411 查看
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"); } } }) }
相关文章推荐
- Knockout: 使用CSS绑定和event的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- jquery失去焦点与获取焦点事件blur() focus()
- ng-blur失去焦点执行事件
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- jquery失去焦点与获取焦点事件blur() focus()
- 失去焦点事件 blur()
- focus()获取焦点和blur()失去焦点事件
- jquery失去焦点与获取焦点事件blur() focus()
- Knockout: 实践CSS绑定和jQuery的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- input中blur失去焦点事件与点击事件冲突的解决方法
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 文本框 失去焦点事件 变色
- 表单元素事件、文本框失去焦点事件、获得焦点事件http://blog.sina.com.cn/s/blog_73dac6b50101h4qb.html
- Qt获得焦点和失去焦点处理事件 (Focus事件)
- 文本框失去焦点事件、获得焦点事件