4
I have a method of building dynamic elements using jQuery v1.2 with Ajax, which creates a list of items containing the structure of <ul>
and <li>
, however, when I apply .blur()
and Ajax returns many values, a scroll bar is created. In IE8 when I click the scroll bar the .blur()
is triggered.
In other browsers works smoothly, however, only on IE8 I have this problem.
Here’s a cipher I created in codePen: Codepen
I preferred Codepen because I could not use Jsfiddle.
If you run your code in Jsfiddle using a more current version of jQuery the problem still happens?
– Tiago César Oliveira
I’d like to see the code in question for testing
– Erlon Charles
The code in the Codepen http://codepen.io/CleberOtaviano/pen/gyrhJ
– Cléber
When I click on the options/suggestions scrollbar Blur() is fired on all browsers. And that makes sense since I click off the input element. That’s what you want to avoid?
– Sergio
Sergio, what you said makes perfect sense, thinking about what you said, I changed it. Blur() for a check, if where it was clicked was different from the list then performs the "None display" of the list. Thank you very much. The following is amended by Codepen: http://goo.gl/j14Iho
– Cléber