JQuery Autocomplete CSS not working?

Posted by gath on Stack Overflow See other posts from Stack Overflow or by gath
Published on 2009-04-09T20:49:36Z Indexed on 2010/05/29 0:02 UTC
Read the original article Hit count: 269

Filed under:
|
|

I am trying to implement JQuery Autocomplete pluggi using Django. I've been able to wire the thing together and I can actually see the result back in the HTML template. My problem is that the JQuery Autocomplete CSS doesn't seem to work. The results I get are not well formatted/styled, and they have no background and you cannot even select them. What is it that am missing?

I have these three files in my media folder same folder:

autocomplete.js
dimensions.js
autocomplete.css

In my html template I have the following function:

$(function(){
    setAutoComplete("tags", "tagResults", "/taglookup/?query=");
});

My textfield looks like this;

<input type="text" name="tags" value="">

Where do I put the tagResults in my HTML template document? Every time I try to introduce a DIV with id="tagResults", JQuery throws an error.

Any ideas?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery