This is my code. if the checkbox is checked then the selected room must be place on the id="resulthere" like add to cart
@foreach ($rooms as $key => $room)
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-body">
<div class="panel"><h3></h3></div>
<div class="col-md-12">
<!-- PRICE -->
<div class="col-md-12"><div class="col-md-4">Price:</div><div class="col-md-8"></div></div>
<!-- AVAILABLE ROOMS -->
<div class="col-md-12"><div class="col-md-4">Room Type:</div><div class="col-md-8"></div></div>
<!-- CLASSIFICATION -->
<div class="col-md-12"><div class="col-md-4">Classification:</div><div class="col-md-8 pull-right"></div></div>
<div class="col-md-12">
<input name="" onclick="add()" type="checkbox" value="" />Reserve<br />
</div>
</div>
</div>
</div>
</div>
@endforeach
<script>
function add(){
}
</script>
<div id="resulthere"></div>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire