vendredi 23 décembre 2016

Check if all the radio buttons from array are checked before submit

i am trying to check via javascript if all the radio buttons i get from an array are checked before submitting the form. Thanks if you stop by. Here is my form:

   <section class="wow fadeIn blog-details-text" style="padding-top: 30px;padding-bottom: 30px">
                <div class="container">
                    @foreach($dishes_and_category['dishes'] as $dish)
                        <div class="col-md-4 col-sm-6" >
                            <label>
                                <input type="radio" @if($dishes_and_category['id_category'] == 6) disabled @endif name="[]" value="" />
                                <img src="...../public/attachment/dishes/" style="border-radius: 50%;height: 250px;width: 100%">
                                <p style="text-align: center; font-weight: bold" class="text-uppercase"></p>
                            </label>
                        </div>
                    @endforeach
                </div>
            </section>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire