lundi 26 septembre 2016

How to validate array inputs using proengsoft/laravel-jsvalidation and laravel 5

Hi I'm trying to validate an array input and select like this:

<td width="23%">                                            
{!!Form::select('mmscod_id[]',['' => '- Seleccione un material -'] +$mat,null,['class' => 'form-control', 'id'=>'mmscod_id'])!!}    
</td>

<td width="17%">
<input type="text" class="form-control" id="cantidad" name="vtcanp[]"/> 

</td>
<td width="17%">
<input type="text" class="form-control" id="precio" name="vtprep[]"/>
</td>

I'm using the proengsoft/laravel-jsvalidation for client-side and the method of this site: https: //ericlbarnes.com/2015/04/04/laravel-array-validation/ but it doesn't work and throws an error

error1

error2

I forgot to mention that these elements are created dynamically Please help me



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire