テキストボックス名 txtEmpcode があります。フォーカスを失ったときに警告メッセージを表示したいです。上記の機能のために 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>