You have to set it as an array state[] in the name attribute.
<select name="state[]" id="state" multiple>
I'm using the Bootstrap plug-in to do the checkbox multi-select, but for some reason I'm not getting the multi check-boxes.
This is the website I'm using http://davidstutz.de/bootstrap-multiselect/
and this is my code:
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- Include the plugin's CSS and JS: -->
<script type="text/javascript" src="js/bootstrap-multiselect.js"></script>
<link rel="stylesheet" href="css/bootstrap-multiselect.css" type="text/css"/>
@section('content')
<div class='container'>
//rest of code
... ...
<div class="form-group">
<label for='state'>State</label>
<select name='state' id='state' multiple='multiple'>
<option value='CA'>California</option>
<option value='VA'>Virginia</option>
<option value='CO'>Colorado</option>
<option value='IA'>Iowa</option>
<option value='WA'>Washington</option>
</select>
</div>
... ...
<script type='text/javascript'>
$(document).ready(function() {
$('#state').multiselect();
});
<script>
Any ideas as to why it's not doing the checkboxes?
Please or to participate in this conversation.