Filter data using an html select

Filter data using an html select

alang2205alang2205 Posts: 18Questions: 11Answers: 0

Example code:
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>
var positions = $('input:select[name="pos"]:selected').map(function()


  • kthorngrenkthorngren Posts: 20,278Questions: 26Answers: 4,766

    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.


Sign In or Register to comment.