javascript - jQuery UI Autocomplete blur IE Issues -


I can not find any answer for this problem between Google and SO, and hopefully anyone "duh , Do it ".

I'm using Blur with UI Auto Integer to auto-select the first element in the list. I work flawlessly in Chrome, FF, and Safari. But when I use any type of IE, it crashes and crashes the browser. The problem is in the following:

  $ ('# element'). Data ('selected items');  

I am using this to compare the actual values ​​in the area to ensure that there was a change. Data ('selected-item') is undefined in IE.

I was thinking that someone has a problem in this past, or possibly know what is involved directly with this error.

This is the full code:

  $ ("# element"). Autocomplete ({source: "search.php", minlength: 2, select: function (event, UI) {$ ('entity') .val (ui.item.value); getOptions ();}, autofocus: true, Matches: True, HTML: Fottal, Open: Function (Event, UI) {$ (".ui-autocomplete"). CSS ("z-index", 1000);}}) Blur (function () (if ($ ('$ element'). Val ()! = $ ('# Element'). Data ('Selected Items')) {if ($ ('.ui-autocomplete') Length) {$ ('.ui-autocomplete .ui-menu-item: first-child'). Click (); $ ('# quantity'). Focus ();}}});  


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -