Hello friends ihave 4 modal popup, and i want to display one by one according to click buttons. this buttons is in foreach this is my foreach
<div class="col-sm-6 poleA">
@foreach($competences as $competence)
<?php $var = $var+1; ?>
<div class="developemnt">
<div class="poleaa"><img src="" class="img-responsive icone" alt="Placeholder image">
<h1 class="titrepole"> </h1>
<p class="parapole">
</p>
<button type="button" class="btn btn-sm btn-default btnpole" data-
toggle="modal" data-target="#mymodal">Demander Votre Devis</button>
</div>
</div>
@if($var == 2)
@break;
@endif
@endforeach
<?php $var = 0; ?>
</div>
When i click a button i want to display a modal according the event select.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire