jquery click method for button doesn't work
<p>here's my code:</p>

<pre><code>     &lt;script&gt;   
     $(document).ready(function(){
      $("#login").click(function() {

        var user = $("#user").val();
        var pass = $("#pass").val();

        $.ajax({
          type: "GET",
          url: "login.php",
          data: "user="+user+"&amp;pass="+pass,
          success: function(result){
            if(result==1) {
              alert("OK");
            }
            else {
              alert{"wrong"};
            }
          }
        });
    });
  });    
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;   
    &lt;form id="textboxes"&gt;
      &lt;input id="user" type="text" required /&gt;&lt;br&gt;
      &lt;input id="pass" type="password" required /&gt;&lt;br&gt;
      &lt;button id="login"&gt;login&lt;/button&gt;
    &lt;/form&gt;    
  &lt;/body&gt;
</code></pre>

<p>when I click on button nothing happend, but when <code>$.ajax({......})</code> method is in comment, it's working fine. </p>

<p>Do you see any mistake in code ?</p>
