title: jQuery AJAX .Post Not Working With Bootstrap
body: <p>I have a login form that works fine if I submit using a traditional html form post</p>
  
  <pre><code>&lt;form class="form-horizontal" id="loginform"&gt;
      &lt;div class="control-group"&gt;
          &lt;label class="control-label" for="user_name"&gt;
              Username or E-Mail
          &lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;input type="text" id="user_name" name="user_name" autofocus&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="control-group"&gt;
          &lt;label class="control-label" for="password"&gt;
              Password
          &lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;input type="password" id="password" name="password"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="control-group"&gt;
          &lt;div class="controls"&gt;
              &lt;label class="checkbox"&gt;
                  &lt;input type="checkbox"&gt;Remember me
              &lt;/label&gt;
              &lt;br&gt;
              &lt;button type="submit" class="btn" id="submit_login"&gt;
                  Sign-in
              &lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Instead of having the page redirect, I'd like to have the user log-in and stay on the same page.  I have the below jQuery to do this</p>
  
  <pre><code>$(document).ready(function(){
      $("#submit_login").click(function(){
          var user_name = $("#user_name").val();
          var password = $("#password").val();
          $.post("login.php", {user_name: user_name, password: password});
      });
  });
  </code></pre>
  
  <p>But this isn't posting and my sessions aren't starting.  I've printed the jQuery 'user_name' and 'password' variables and they are pulling in the correct values from the form.  The variables the 'login.php' file looks for are also 'user_name' and 'password'.  There are no console errors when I run the script.</p>
  
  <p>What is causing the disconnect here?</p>