0

I am working on a multiselect option with jQuery UI Multiselect. The items are all inside a jQuery UI accordion. On selecting items the UI is getting updated, and code is written for persisting the selection even if we switch to another panel in Accordion. Everything works fine in FF, Chrome, IE8, IE10 but not in IE9.

After debugging and comparing in IE Dev tools I found the following -enter image description here

When I log inner html of select element in Dev Tools with

console.log(selectElement.html())

I am getting the "selected" attribute in IE9. And, when I want to remove "selected" attribute for each item manually like -

item.removeAttr("selected") 

it shows error as undefined.

So, is there any issue with selected attribute in IE9?

4

1 回答 1

1

仍然无法找出确切的原因并修复。但是,通过向标签添加另一个属性来解决它。

如果有人对此有任何想法,请发表您的想法。

于 2013-11-06T07:32:49.357 回答