<div class="col-md-5">
<div class="form-group">
<label for=""></label>
<select name="" id="company" " class="form-control">
<option value="">--- select company ---</option>
@foreach ($customer as $c)
<option value="{{ $c[0] }}">{{ $c[1] }}</option>
@endforeach
</select>
</div>
<button class="btn btn-primary btn-sm" onchange="printQr(this.value)" target="_blank" type="submit"><i class="fa fa-print"></i> Print</button>
</div>
if I select the select option, the button can take the value and be made as a parameter for the action. and that dynamically
please hepl me!