Your options should have "value" attributes and not "name".

<select value="textselector">
<option value="11">Text</option>
<option value="12">Text 2</option>
</select>

Try something like

$("textselectoroption:selected").val();

On Jun 25, 6:03 pm, Chas <[EMAIL PROTECTED]> wrote:
> How do I retrieve the name attribute of a selected option using
> jquery.
>
> IE:
>
> <select name="textselector">
> <option name="11">Text</option>
> <option name="12">Text 2</option>
> </select>
>
> In this example, I would be trying to get 12 when the "Text" option is
> selected.

Reply via email to