title: Loading partial view using ajax the submit button is fired
body: <p>When I am loading a partial view with ajax the submit button is fired.
  If I remove/delete the submit button the partial view is rendered properly.</p>
  
  <p>This is my javascript code:</p>
  
  <pre><code>$(".searchclientssendsms").keypress(function (event) {
  
      var keycode = (event.keycode ? event.keycode : event.which);
      if (keycode == '13') { //enter key
  
               var value = $(this).val();
  
               $.get("/smstemplate/SearchClients/" + value,
  
               function (data) {             
                  $('#searchClientsResult').html(data);               
               });
  
      }
  });
  </code></pre>
  
  <p>The line from RouteConfig regarding my search :</p>
  
  <pre><code>routes.MapRoute(name: "SearchClientsSendSMS", 
                    url: "smstemplate/searchclients/{search}", 
               defaults: new { controller = "smstemplate",
                                   action = "searchclients" });
  </code></pre>
  
  <p>And the functions from controller:</p>
  
  <pre><code>    public ActionResult SendSMS()
      {
          return View();
      }
  
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult SendSMS(SMSTemplate sms, string[] clients)
      {
  
          foreach (string client in clients)
          {
              int idclient = Convert.ToInt32(client);
              Customer customer=db.Customers.Find(idclient);
             // SendSMS(customer.Phone, sms.Text);
          }
  
          return View();
      }
  
  
      public ActionResult SearchClients(string search)
      {
          List&lt;Customer&gt; clients = db.Customers.Where(c =&gt; c.Deleted == true &amp;&amp; (c.Email.Contains(search) || c.Name.Contains(search) || c.Phone.Contains(search))).ToList();
  
          return PartialView(clients);
      }
  </code></pre>
  
  <p>If I execute the javascript function from firebug the partial view is rendered corrected. The submit button is not fired any more.</p>
  
  <pre><code> $.get("/smstemplate/SearchClients/poir",
  
          function (data) {
  
              $('#searchClientsResult').html(data);
  
          });
  </code></pre>
  
  <p>I noticed this behaviour only at enter key.</p>
  
  <p>So, what can cause that?</p>