mardi 20 septembre 2016

has-feedback error is not working on bootstrap table on form validation in laravel

We do generally error validation for the div tags as below

 <div class="form-group has-feedback " id="">
                <label class="col-md-4 control-label "> Email</label>
                <div class="col-md-4">
                  <input type="text" name="Email" class="form-control" >
                  @if ($errors->has('Email')) 
                  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
                  </p>
                    @endif
                </div>
              </div>

the same i m using on the table as well but its not working

<table>
<tr>
     <td class="form-group has-feedback ">
     <input type="text" class="form-control " autocomplete="off" name="email" >
      @if ($errors->has('email')) 
       <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
      </p>
      @endif
      </td>
</tr>
</table>

I have tried a ways but it is not working ..Please suggest me how to use this validation on bootstrap table ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire