<select name="from[]" id="multiselect" class="form-control" size="8" multiple="multiple">
<option value="1">Item 1</option>
<option value="2">Item 5</option>
<option value="2">Item 2</option>
<option value="2">Item 4</option>
<option value="3">Item 3</option>
</select>
<button type="button" id="multiselect_rightAll" class="btn btn-block"></button>
<button type="button" id="multiselect_rightSelected" class="btn btn-block"></button>
<button type="button" id="multiselect_leftSelected" class="btn btn-block"></button>
<button type="button" id="multiselect_leftAll" class="btn btn-block"></button>
<select name="to[]" id="multiselect_to" class="form-control" size="8" multiple="multiple"></select>
What I have tried:
This is my HTML code and the 2 sided multiselect is inside the bootstrap modal, my js is like this:
$('#multiselect').multiselect(); {(
});
The result is ok but when the button is clicked nothing happened please help.