Filter data using an html select
Filter data using an html select
alang2205
Posts: 18Questions: 11Answers: 0
Example code: http://live.datatables.net/rosahuka/618/edit
I want to do something similiar as this example but instead of using a checkbox option i want to do it using a select html element, i have try by doing this:
<select name="post">
<option value="Director">Director</option>
<option value="Developer" selected>Developer</option>
<option value="value3">Value 3</option>
</select>
var positions = $('input:select[name="pos"]:selected').map(function()
Answers
See if this SO Thread discussing ways to get the selected value helps. Unless you are suing something like select2 you are only able to select one option at a time so the map function isn't needed.
Kevin