I'm displaying the names of groups in a drop down list, and the user will select one option. I want to send to ajax the id of this group, not the name. The following HTML will send the name but not the group_id. Any help ?
<select class="form-control" style="width:150px" name="grps" id="grps">
@foreach ($j_grp as $j_grps)
<option>{{ $j_grps->name }}</option>
@endforeach
</select>