I'm looping through my collection to display all my data. Pretty standard stuff - nothing special.
I wan't to target and apply functionality to every element from number 9 onwards.
For example. The first 8 sessions are free, after that I want to append a button to the 9th+ ones to pay.
@foreach($sessions as $session)
<input type="text" name="event" value="" class="form-control datetimepicker" >
@endforeach
could i apply a class to all items in position 9 and above.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire