Reputation: 4812
how to get selected value of array of drop down list box using jquery? I have uploaded the code that i have tried. doesn't work for drop down. thanks in advance for any help or suggestions
Upvotes: 0
Views: 1036
Reputation: 2576
$('select.foo option:selected').val(); // get the value from a dropdown select
Upvotes: 0
Reputation: 422
Below is a screenshot of me using jQuery (thanks to the jQuery inject add-on) to fetch the selected value from the form item.
in brief: $("select option:selected").val()
Upvotes: 1