Grouping without optgroup. In a (big) select you could have many generic options like "select an option", or just "-----", each with a specific value. By selecting one, the user is given a starting position, closer to the options she might need.
--Andrea ________________________________ From: John Resig <jere...@gmail.com> To: jquery-dev@googlegroups.com Sent: Thursday, July 23, 2009 7:38:03 PM Subject: [jquery-dev] Re: Using .val() with <select> Well, it's intentional in that the code explicitly checks .text and .value: this.selected = (jQuery.inArray( this.value, values ) >= 0 || jQuery.inArray( this.text, values ) >= 0); Although, I'm torn as to if your specific case warrants more merit. It seems odd to me to have a value be identical to a different text value (which why it probably hasn't come up before). Perhaps you can expand on the specific case where this came up? --John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---