2009/7/23 John Resig <jere...@gmail.com>: > I'm kind of struggling to remember - I think it may be because when an > option has no value the .text value is sent to the server instead. Perhaps > the logic could be switched from an || to an elem.value ? ... do .value ... > : ... do .text ... > > I went ahead and did it: > http://dev.jquery.com/ticket/4962 > http://dev.jquery.com/changeset/6485 > > And it passes in all browsers - so yay!
That seems like the best approach: as HTML 4.01 specifies that the "value" attribute takes precedence, with the text of the option being used only if there is no value attribute, it makes sense for jQuery to give precedence to the option with the specified attribute value. Regards, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---