[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-13 Thread Eric Ongerth
Do you understand why? It's not the event that has the value that you wish to submit. What has the needed value is the object whose "onchange" callback is currently being executed. And since we're in that callback at the moment, it just so happens that the identifier "this" refers to the callba

[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-12 Thread Pickledegg
Thanks andrea ;) On May 12, 12:27 pm, Pickledegg <[EMAIL PROTECTED]> wrote: > Sussed it: > > $('this').val() does the trick! > > On May 12, 12:05 pm, Pickledegg <[EMAIL PROTECTED]> wrote: > > > Heres my code: > > > This fires on any dropdown with the class 'ajaxdropdown': However, it > > errors t

[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-12 Thread Pickledegg
Sussed it: $('this').val() does the trick! On May 12, 12:05 pm, Pickledegg <[EMAIL PROTECTED]> wrote: > Heres my code: > > This fires on any dropdown with the class 'ajaxdropdown': However, it > errors telling me that event.val() is not a function. How do I refer > to the current dropdown being

[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-12 Thread andrea varnier
On 12 Mag, 13:05, Pickledegg <[EMAIL PROTECTED]> wrote: > How do I refer > to the current dropdown being changed, and get its value? hi :) you should use $(this).val()