samedi 5 mars 2016

Laravel 5 Select multiple with option to remove all selection

I am having a select in my form with multiple select feature and it works good except If I have made any selection I can't remove all the selections as atleast one has to be selected.

How can this remove all selection be achieved. Below is my code for the select

<div class="form-group">
     <label for="factory_access">Factories Access</label>
     {!! Form::select('factories[]', $factories,$edit? $selectedFact:'' , ['class' => 'form-control','id' => 'example-getting-started', 'multiple' => 'multiple']) !!}
</div>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1VZbvD8
via IFTTT

Aucun commentaire:

Enregistrer un commentaire