嗨,我有一个 jquery 函数,它有 ajax 方法,当焦点离开文本框函数时必须触发。我在 ajaxpanel 中有一个服务器端按钮,但是当我按下按钮并且按钮操作正确时,永远不会执行焦点
jQuery("#drpProvider").focusout(function () {
var x;
var customer = 1;
$.ajax({ type: "POST",
url: "request.aspx/branchsafed",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({
customer: customer
}),
dataType: "json",
success: function (ret) {
var specification = ret.d;
if (ret.d == "no") {
}
else {
var temp = ret.d;
$("#blocklable").text(temp);
}
}
});
});