Either of these should work:

$("#choices option:selected").text();
$("#choices option:selected")[0].text;

On Jul 31, 10:45 am, Zaliek <zali...@gmail.com> wrote:
> How do I retrieve the currently selected option string in a select box
> instead of the value?
> <select id="choices">
> <option value="value">String</option>
> </select>
>
> Using
> $("#choices").val();
> returns the value if it's set. if there is no value set, jQuery
> returns the string instead. I want to retrieve the string while a
> value is set!
>
> Thanks for you time, I'm sure this something that I simply overlooked.

Reply via email to