jQuery 1.9.1 or later, Chrome 24 on osx 10.8.2.
I'm having trouble getting Chrome to select a given value in a select list, and that setting obj.val('foo')
was not working whereas $("option[value='foo']",obj).prop("selected",true)
is working.
I'm getting mixed results between different browsers (ie, chrome, firefox) running on windows and mac. mostly that
obj.val('foo')
is not currently working on mac chrome only. This is crazy!
I noticed that if I look at the .html() of the object, it does not show which item is selected, even though reading the val() property reports it properly. Which is to say, I'm expecting to (but not) see something like
<option value="bucket" selected="selected">bucket</option>
http://jsfiddle.net/frumbert/a4RzY/
Is this a bug in chrome's implementation of innerHTML() (which http://api.jquery.com/html/ states is being used) ?