I posted on this, with lots of details, at stack overflow, but never could get a resolution, and I need some help. I'm trying to use several autocomplete text boxes in a dialog form created via django, with the html loaded via an ajax .load. The autocomplete data loads just fine, the search works fine, and the select works fine, except that I can never get the autocomplete to close once it's opened. I really need to be able to use autocomplete, but this is obviously a deal breaking issue. I get no errors at all in the console. I'd been using a custom version of jqueryui 1.9.1, and just tried the base 1.10, with no effect. Please help me resolve this! Thanks.
That did something, but didn't solve the problem. I notice that without the "blur", the close event gets called twice. Adding the blur it only gets called once. Unfortunately, the widget still stays open after close, even with the blur.
I looked at your code, and with the line you added, its very similar to some of my code that works. I suspect the problem is in Django or the way your ajax handles the response callback. Only a suspicion, but I think the jQuery is OK.
Grrrrrrrrrrrrrr. It turns out it was a CSS issue. I had display: block !important on the class for this! Of course, setting display:none was overridden by the important. I spent sooo many hours trying to figure this out. Thanks for your help though. Telling me the jQuery was fine made me look again at the HTML and step through seeing what was happening, which is how I found it.
Leave a comment on holyoaks's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic