Saturday, 15 September 2012

jquery .html() does not reflect actual html; google chrome 24.0.1312.57 -



jquery .html() does not reflect actual html; google chrome 24.0.1312.57 -

jquery 1.9.1 or later, chrome 24 on osx 10.8.2.

i'm having problem getting chrome select given value in select list, , setting obj.val('foo') not working whereas $("option[value='foo']",obj).prop("selected",true) working.

i'm getting mixed results between different browsers (ie, chrome, firefox) running on windows , mac.

obj.val('foo')

is not working on mac chrome only. crazy!

i noticed if @ .html() of object, not show item selected, though reading val() property reports properly. say, i'm expecting (but not) see

<option value="bucket" selected="selected">bucket</option>

http://jsfiddle.net/frumbert/a4rzy/

is bug in chrome's implementation of innerhtml() (which http://api.jquery.com/html/ states beingness used) ?

jquery google-chrome

No comments:

Post a Comment