Parag
Parag

Reputation: 4812

how to get selected values of an array of dropdownlist box using jquery

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

Answers (2)

alexius
alexius

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()

demonstrating getting the selected value from a select

Upvotes: 1

Related Questions