This seems to work for me: http://media.nodnod.net/val_set.html
On Wed, Jan 14, 2009 at 4:27 PM, John Resig <jere...@gmail.com> wrote: > > Do you have a test page demonstrating the issue? It would help us to > diagnose the problem. > > --John > > > > On Wed, Jan 14, 2009 at 2:14 PM, matt <h.duden...@gmail.com> wrote: >> >> I cant seem to set the value of any select elements using val. Input >> type=text is working fine. >> >> So I have something like: >> $('#usa_reference_state_id').val("2") >> alert($('#usa_reference_state_id').val() ) >> >> and the alert is "" so no value was set. I am 100% sure that 2 is in >> the list of options for #usa_reference_state_id. >> >> > >> > > > > -- --- David Zhou da...@nodnod.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---