失去焦点事件 blur()
2017-08-11 18:09
267 查看
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"); } } }) }
相关文章推荐
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- jquery失去焦点与获取焦点事件blur() focus()
- 失去焦点事件 blur()
- jquery失去焦点与获取焦点事件blur() focus()
- Knockout: 实践CSS绑定和jQuery的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- jquery失去焦点与获取焦点事件blur() focus()
- input中blur失去焦点事件与点击事件冲突的解决方法
- 失去焦点事件 blur()
- 失去焦点事件 blur()
- focus()获取焦点和blur()失去焦点事件
- 失去焦点事件 blur()
- ng-blur失去焦点执行事件
- 失去焦点事件 blur()
- Knockout: 使用CSS绑定和event的blur失去焦点事件, 给未通过校验的输入框添加红色边框突出显示.
- TextBox获得焦点失去焦点也可引发服务器端事件(webform程序)
- jquery之鼠标失去焦点事件
- input标签内容改变或失去焦点的触发事件
- DIV类似失去焦点事件(点击层外层隐藏)