The code works when I am using the val()-method on the form field.

On Thu, Oct 9, 2008 at 5:05 PM, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> The value is in the <option> element, not the parent <select>:
>
> $("#question_2").change(function() {
>  var itemValue = $(this).children(':selected').val();
>  alert("itemValue=" + itemValue + " >" + this.id);
> });
>
> -ricardo
>
> On Oct 9, 11:01 am, "Weyert de Boer" <[EMAIL PROTECTED]> wrote:
>> I also have tried item.attr("value") but that didnt work either.
>

Reply via email to