To get the selected value from a dropdown with ID is easy:
$("#ComboBox option:selected").text()
However I can't use ID and need to get it by title/a select element, how do I do that? I tried something like: var item_level = $('select:contains("Item Level")').text开发者_如何学C()
but wasn't very successfull.
Any ideas? Thanks in advance.
with your comment you can select the selected option only in
$("select[title=Item Level] option:selected").text();
精彩评论