title: Bootstrap Validator to validate length of field correct syntax
body: <p>I'm trying to validate the string's length with Bootstrap Validator. Unfortunately, the JavaScript does not work. I'm thinking maybe a syntax error.</p>
  
  <p>HTML :</p>
  
  <pre><code>    &lt;form id="ordertracking" role="form"&gt;
          &lt;div style="margin-bottom: 12px" class="input-group"&gt;
          &lt;span class="input-group-addon"&gt;&lt;strong&gt;@&lt;/strong&gt;&lt;/span&gt;
          &lt;input id="login-username" type="text" class="form-control" name="email" placeholder="Email"&gt;
         &lt;span class="input-group-addon"&gt;&lt;i class="glyphicon glyphicon-barcode"&gt;&lt;/i&gt;&lt;/span&gt;
              &lt;input id="login-password" type="text" class="form-control" name="customerNum" placeholder="Customer #"&gt;       
      &lt;/form&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code> $('#ordertracking').bootstrapValidator({
          feedbackIcons: {
              valid: 'glyphicon glyphicon-ok',
              invalid: 'glyphicon glyphicon-remove',
              validating: 'glyphicon glyphicon-refresh'
          },
          fields: {
              email: {
                  validators: {
                      stringLength: {
                          min: 5,
                          max: 50,
                          message: 'The full email must be less than 50 characters'
                      }
                  }
              },
              customerNum: {
                  validators: {
                      stringLength: {
                          min: 4,
                          max: 6,
                          message: 'The customer number has to be 5 or 6 digits'
                      }
                  }
              }
          }
      });
  </code></pre>
  
  <p>Link to Codepen: <a href="http://codepen.io/Delano83/pen/bwQZbB" rel="nofollow">http://codepen.io/Delano83/pen/bwQZbB</a> </p>
  
  <p>I've been knocking my head on this for two hours so any suggestions is very appreciated. </p>