title: Bootstrap Validator Form Issues
body: <p>Below is my code, both modal and javascript controlling the form. The validation doesnt work. It returns whether or not the validation requirements have been met however on submitting nothing happens. I have the jquery and bootstrap links in another file. I am using laravel 4. 
  Friends using the same validator have it working but there is no difference in execution of our codes.</p>
  
  <p>If i remove the validator, the form works in the constructed fashion. I have literally no idea whats going on here. Any and all help would be appreciated. </p>
  
  <pre><code>&lt;link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.1/css/bootstrapValidator.min.css"/&gt;
  &lt;script type="text/javascript" src="//cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.1/js/bootstrapValidator.min.js"&gt;&lt;/script&gt;
  
  &lt;head&gt;
      &lt;!-- &lt;link rel="stylesheet" href="css/Style_sheet.css" type="text/css" /&gt; --&gt;
      &lt;title&gt;The Transformers&lt;/title&gt;
      &lt;link rel="icon" href="/title_icon2.jpg"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;!-- // &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"&gt;&lt;/script&gt; --&gt;
  &lt;/head&gt;
  
      &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"&gt;
      &lt;script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://getbootstrap.com/assets/js/docs.min.js"&gt;&lt;/script&gt;
  
          &lt;div class="modal fade" id="login_popup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;&lt;!--Login Popup--&gt;
              &lt;div class="modal-dialog"&gt;
                  &lt;div class="modal-content form-horizontal" role="form"&gt;
  
                      &lt;div class="modal-header"&gt;
                          &lt;button type="button" class="btn btn-danger btn-sm glyphicon glyphicon-remove pull-right" data-dismiss="modal"&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;
                          &lt;/button&gt;
                              &lt;h4 class="modal-title text-inverse" id="myModalLabel"&gt;Login&lt;/h4&gt;
                      &lt;/div&gt;
  
                      &lt;div class="modal-body form-group"&gt;
                          &lt;form method="post" class="form-horizontal" id="login_form" action="{{ URL::route('account-login-post') }}" role="form"&gt;
  
                              &lt;input type="hidden" name="_token" value="&lt;?php echo csrf_token(); ?&gt;"&gt;
  
                              &lt;div class="form-group"&gt;
                                  &lt;label for="input_email" class="col-sm-3 control-label text-inverse"&gt;Username:&lt;/label&gt;
                                  &lt;div class="col-sm-6"&gt;
                                  &lt;input class="form-control" id="input_email" type="text" name="user_name" placeholder="Username" {{ (Input::old('username')) ? ' value="'. e(Input::old('username')) . '"' : ''}}&gt;
                                  {{ $errors -&gt;first('username') }}
                                  &lt;/div&gt;
                              &lt;/div&gt; 
  
                              &lt;div class="form-group"&gt;
                                  &lt;label for="input_password" class="col-sm-3 control-label text-inverse"&gt;Password:&lt;/label&gt;
                                  &lt;div class="col-sm-6"&gt;
                                  &lt;input class="form-control" id="input_password" type="password" name="password" placeholder="Password"&gt;
                                  {{ $errors -&gt;first('password') }}
                                  &lt;/div&gt;
                              &lt;/div&gt; 
  
                              &lt;div class="form-group"&gt;
                                  &lt;label for="input_remember_me" class="col-sm-3 control-label text-inverse"&gt;Remember Me:&lt;/label&gt;
                                  &lt;div&gt;
                                      &lt;input type="checkbox" name="input_remember_me" id="input_remember_me"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
  
                          &lt;/form&gt;
                      &lt;/div&gt;
  
                      &lt;div class="modal-footer"&gt;
                          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                          &lt;button type="button submit" class="btn btn-primary" form="login_form"&gt;Submit&lt;/button&gt;
                      &lt;/div&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
              $('#login_form').bootstrapValidator({
                  container: 'tooltip',
                  feedbackIcons: {
                      valid: 'glyphicon glyphicon-ok',
                      invalid: 'glyphicon glyphicon-remove',
                      validating: 'glyphicon glyphicon-refresh'
                  },
                  fields: {            
                      user_name: {
                          validators: {
                              notEmpty: {
                                  message: 'The username is required and cannot be empty'
                              },
                              stringLength: {
                                  min: 3,
                                  message: 'The username must be more than 3 characters long'
                              },
                              regexp: {
                                  regexp: /^[a-zA-Z0-9_]+$/,
                                  message: 'The username can only consist of alphabetical, number and underscore'
                              }
                          }
                      },
                      password: {
                          validators: {
                              notEmpty: {
                                  message: 'The password is required'
                              },
                              callback: {
                                  message: 'The password is not valid',
                                  callback: function(value, validator, $field) {
                                      if (value === '') {
                                          return true;
                                      }
                                      // Check the password strength
                                      if (value.length &lt; 7) {
                                          return {valid: false,
                                              message: 'It must be more than 7 characters long'
                                          }
                                      }
                                      // The password doesn't contain any uppercase character
                                      if (value === value.toLowerCase()) {
                                          return {valid: false,
                                              message: 'It must contain at least one upper case character'
                                          }
                                      }
                                      // The password doesn't contain any uppercase character
                                      if (value === value.toUpperCase()) {
                                          return {valid: false,
                                              message: 'It must contain at least one lower case character'
                                          }
                                      }
                                      // The password doesn't contain any digit
                                      if (value.search(/[0-9]/) &lt; 0) {
                                          return {valid: false,
                                              message: 'It must contain at least one digit'
                                          }
                                      }
                                      return true;
                                  }
                              }
                          }
                      }
                  }
              });
  
              // i give up!!  The validator is on crack :-)
          //ill try a different version of the validator then :/
          });
          &lt;/script&gt;
  </code></pre>