Учитывая следующее раскрывающееся меню:
<select id="my-dropdown" name="my-dropdown">
<option value="1">Peter</option>
<option value="2" selected>Pan</option>
</select>
Я знаю, что могу получить значение (2 здесь) текущего выбора, используя этот код:
find_field("#my-dropdown").value
Но как я могу получить имя/метку (Pan здесь) текущего выбора? Следующий код выполняет не:
find_field("#my-dropdown").label
Спасибо:)