title: Validate an array of inputs bootstrap validator - Laravel 5.2
body: <p>I have problems to validate in the client-side an array of inputs.
  Validations do not look right. I think I'm doing the right thing.
  I'm using the plugin bootstrap validator and laravel 5.2</p>
  
  <p><a href="https://i.stack.imgur.com/kZp0s.jpg" rel="nofollow noreferrer">client-side validation photo:</a></p>
  
  <p>js code:</p>
  
  <pre><code>$('#forma').bootstrapValidator({
          message: 'Valor no valido',
          feedbackIcons: {
              valid: 'glyphicon glyphicon-ok',
              invalid: 'glyphicon glyphicon-remove',
              validating: 'glyphicon glyphicon-refresh'
          }, 
          fields: {
              'vtcanp[]': {
                  validators: {
                      notEmpty: {
                          message: 'Codigo de moneda requerido'
                      },
                      stringLength: {
                          min: 3,
                          max: 4,
                          message: 'Código debe ser minimo de 3 y maximo 4 caracteres'
  
  
                      },
                  }
              },
              'vtprep[]': {
                  validators: {
                      notEmpty: {
                          message: 'Descripción de moneda requerido'
                      }
  
                  }
              }
  
  
  
  
          }
      });
  </code></pre>
  
  <p>table view code:</p>
  
  <pre><code>&lt;td width="17%"&gt;
                                          &lt;input type="text" class="form-control" id="cantidad" name="vtcanp[]" /&gt; 
  
                                      &lt;/td&gt;
                                      &lt;td width="17%"&gt;
                                          &lt;input type="text" class="form-control" id="precio" name="vtprep[]"/&gt;
  
                                      &lt;/td&gt;
  </code></pre>
  
  <p>Now It's validating but one tr only. When I add more tr it' not validating.</p>
  
  <p><a href="https://i.stack.imgur.com/S2r9A.jpg" rel="nofollow noreferrer">Error tr</a></p>