我有一個文本框的名字txtEmpcode.When它失去重點,我想,以示對上述功能的警報message.I've書面jQuery的,但它不工作...Textchange事件不會在jQuery中變得僵硬?
這是我的jQuery
$(document).ready(function(){
var prm = Sys.WebForms.PageRequestManager.getInstance();
//Raised before processing of an asynchronous postback starts and the postback request is sent to the server.
prm.add_beginRequest(BeginRequestHandler);
// Raised after an asynchronous postback is finished and control has been returned to the browser.
prm.add_endRequest(EndRequestHandler);
AutoComp();//Function for autocomplete textbox
$("#<%=txtEmpCode.ClientID").change(function(){
alert("hai");
});
});
繼承人我的asp.net文本框
<asp:TextBox ID="txtEmpCode" runat="server" Width="250px" ToolTip="Enter EmployeeCode"
AutoPostBack="True" ontextchanged="txtEmpCode_TextChanged"></asp:TextBox>
完全忽略了那可能是一個問題! – Gromer