Masterpages jquery
<p>Hi
 i am using master pages webmethod for calling auto complete my code js is </p>

<pre><code>   $(document).ready(function(e) {

    $('#ctl00_TextBox1').keyup(function(e) {
        //$('#ctl00_ContentPlaceHolder1_txtTest').keyup(function(e) {
        alert("hi");
        var msgbox = $("#status");
        var tx_val = document.getElementById("ctl00_TextBox1").value;
        alert(tx_val);
        if (e.keyCode != 40 &amp;&amp; e.keyCode != 39 &amp;&amp; e.keyCode != 38 &amp;&amp; e.keyCode != 37) {
            // debugger;
            // alert("hi");
            //debugger;

            $.ajax({

                // alert("ajax");
                type: "POST",
                //Page Name (in which the method should be called) and method name
                url: "Default.aspx/CheckDateTime",
                // If you want to pass parameter or data to server side function you can try line

                data: "{'args':'" + tx_val + "'}",
                //else If you don't want to pass any value to server side function leave the data to blank line below
                // data: "{}",

                contentType: "application/json; charset=utf-8",

                dataType: "json",

                success: function(msg) {
                    //Got the response from server and render to the client
                    msgbox.html(msg.d);
                }
            });
        };
    });
});
</code></pre>

<p>My problem is that this code runs in normal pages like aspx pages when I am using master page pages that the code is not working properly
means code is running upto <code>alert(tx)val);</code> after ajax extension is not working</p>
