title: Form not getting submitted
body: <p>I'm trying to submit a form but it's not working. In the code below it is even changing the color of "Log in" submit button to red when "success" is returned. In the Chrome console it shows nothing and in the network tab it invokes only Ajax call activity:</p>
  
  <pre><code>(function ($) {
      Drupal.behaviors.ajax_example = {
          attach:function (context) {
              jQuery('#user-login #edit-submit').click(
  
                  function(){
  
                      var login = jQuery("#user-login #edit-name").val();
                      var pass = jQuery("#user-login #edit-pass").val();
  
  
                      //make Ajax call to get authentication details
                      jQuery.ajax({
                          type:'POST',
                          data:{
                              js: 1, 
                              login: login,
                              passwd:pass
                          },
                          dataType:'json',
                          success: function(data)
                          {            
                              if(data.msg)
                              {
                                  alert(data.msg);
  
                                  if(data.msg == "success")
                                  {
                                      alert("submitted the form");
                                      jQuery('#user-login #edit-submit').css('color', 'red');
                                      jQuery('#user-login #edit-submit').submit();
                                  }
                              }
                          },
                          url: "http://localhost/my/user/verifylogin"
                      });
  
                      //alert('sent data1');
                      return false;
                  })
              return true;  
          }
      }
  })(jQuery);
  </code></pre>
  
  <p>And the html code of the Drupal form is:</p>
  
  <pre><code>&lt;div id="content" class="column"&gt;
    &lt;div class="section"&gt; &lt;a id="main-content"&gt;&lt;/a&gt;
      &lt;h1 class="title" id="page-title"&gt; User account &lt;/h1&gt;
      &lt;div class="tabs"&gt; &lt;/div&gt;
      &lt;div class="region region-content"&gt;
        &lt;div id="block-system-main" class="block block-system"&gt;
          &lt;div class="content"&gt;
            &lt;form action="/my/user" method="post" id="user-login" accept-charset="UTF-8"&gt;
              &lt;div&gt;
                &lt;div class="form-item form-type-textfield form-item-name"&gt;
                  &lt;label for="edit-name"&gt;Username &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;input type="text" id="edit-name" name="name" value="" size="60" maxlength="60" class="form-text required"&gt;
                  &lt;div class="description"&gt;please full name ending with @woodstock.ac.in&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="form-item form-type-password form-item-pass"&gt;
                  &lt;label for="edit-pass"&gt;Password &lt;span class="form-required" title="This field is required."&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;input type="password" id="edit-pass" name="pass" size="60" maxlength="128" class="form-text required"&gt;
                  &lt;div class="description"&gt;Enter the password that accompanies your username.&lt;/div&gt;
                &lt;/div&gt;
                &lt;input type="hidden" name="form_build_id" value="form-gJYws5bihrq8cGOg-bZXiTcd9u5JoTqA4mqiw8nW3jc"&gt;
                &lt;input type="hidden" name="form_id" value="user_login"&gt;
                &lt;div class="form-actions form-wrapper" id="edit-actions"&gt;
                  &lt;input type="submit" id="edit-submit" name="op" value="Log in" class="form-submit" style="color: red;"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/form&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>