Error: $.ajax is not a function
<p>Am getting a error like that, $ajax is not working</p>

<pre><code>&lt;script type="text/javascript"&gt;   
$(document).ready(function () {
  $("#btnsubmit").click(function () {
    $.ajax({
      type: "POST",
      url: "loginform.aspx/getdataval",
      data: "{'uname':'" + $("#TextBox1").val() + "','passwod':'" + $("#TextBox2").val() + "'}",
      contentType: "application/json;charset=utf-8",
      dataType: "json",
      success: function (msg) {
        alert("welcome");
        AjaxSucceeded(msg);
      },
      error: function (xhr, ajaxOptions, thrownError) {
        alert("what is the problem")
      }

    });
  });
});

function AjaxSucceeded(result) {
  alert(result.d);
  var Emp = result.d;
  $("#output").append('&lt;p&gt;' + Emp.Sname + ' ' + Emp.Sno + '&lt;/p&gt;');
}
&lt;/script&gt;
</code></pre>

<p>$ ajax not a function why? When I run this script I get error, it not running, what is the problem?</p>

<p>Thanks</p>
