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 callback's owner.
On May 12, 7:03 am, Pickledegg <[EMAIL PROTECTED]> wrote: > 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 telling me that event.val() is not a function. How do I refer > > > to the current dropdown being changed, and get its value? I know $ > > > ('#idofdropdown').val() will work, but I need to use multiple > > > dropdowns. > > > > $(document).ready(function(){ > > > $('.ajaxdropdown').change(function(event){ > > > $('#charges').load('/new_callchargesajax.asp? > > > shtech=y&c_name='+escape(event.val())); > > > }); > > > }); > > > > Thanks.