The change event doesn't fire until the input is blurred (focus moves away
from the dropdown via tab-key or mouse click elsewhere). If you want to
handle the "changes" to the selected option while they're being changed, try
keydown, keyup, or keypress.

- Richard

On 9/21/07, Brook Davies <[EMAIL PROTECTED]> wrote:
>
>
> I've tried this, but it does not catch change events trigged by the
> keyboard. Why?
>
> Brook
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Andy Matthews
> Sent: September 20, 2007 1:21 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: NEWBIE QUESTION: Catch Select event
>
>
> I believe you'd want the change handler.
>
> $("select").change(function() {
>     //do some stuff here...
> )};
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of hobbit
> Sent: Thursday, September 20, 2007 1:22 PM
> To: jQuery (English)
> Subject: [jQuery] NEWBIE QUESTION: Catch Select event
>
>
> Hi,
>
> I would like to catch the select event when a user changes the select item
> in any <SELECT> in a form.  Something like:
>
> $("select").select(function() {
>     //do some stuff here...
> )};
>
> Is this feasible?
>
>
>
>
>

Reply via email to