开发者

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开发者_Python百科 any help or suggestions


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

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


$('select.foo option:selected').val(); // get the value from a dropdown select
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜