I've got a textbox name txtEmpcode.When it looses focus i want to show a alert message.I've written jquery for the above functionality,but its not working...

THis is my 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");
    });

});

```

Heres my asp.net textbox

```
<asp:TextBox ID="txtEmpCode" runat="server" Width="250px" ToolTip="Enter EmployeeCode" 
AutoPostBack="True"  ontextchanged="txtEmpCode_TextChanged"></asp:TextBox>

```