Brice Burgess wrote:
> Mike Alsup wrote:
>   
>> Yes, of course.  We just haven't solved this one yet.  I took a look
>> at the dojo source earlier today and they don't account for this
>> situation either.
>>
>> Mike
>>     
> "off the top" I would suggest seeing if the value attribute exists on 
> the selectedIndex <option>. If it exists, use this value. If not, use 
> the innerHTML of the <option> (or empty string if there is none) ? 
> Perhaps this is too much overhead?
>
> ~ brice
>   
Upon looking into the source I see that all $.val() does is provide a 
macro to the element in questions .value -- and doesn't do any 
sniffing/"smart" work. So perhaps providing a $.sval() function to match 
the value of a select may be in order (and it's probably in the forms 
plugin already... ;))

~ Brice

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to