I am using jquery.ui.autocomplete on multiple comboboxes on a page. In IE only, the combobox resets on loss of focus (onBlur). No amount of JS debugging can reveal the cause. Any suggestions?
I am using jquery.ui.autocomplete on multiple comboboxes on a page. In IE only, the
Share
Ok, here’s what I came up with. I used your code and replicated your bug.
The reason that IE is different then say… firefox, is this routine:
In firefox, ui.item is not null, in IE it is. So in IE it has to get the actual values of ‘<option value=”foo”>foo</option>’ the value attribute, and compare with whats in the text box.
Here’s the problem:
value=”foo” must match exactly what is in >foo<
Will cause it to clear the field when you blur
Will not
In firefox and chrome, they pass ui so they don’t get this check, it just continues on and everything is cool. Check to make sure your values match exactly what the option text is.