I'm trying to add autocomplete to all inputs with a certain class
(.autocomplete). Everything works ok from posting the data to
receiving the response (seen in firebug) but no suggest is being built
near my input even when I try with dummy data as per jquery docs...any
suggestions?
function load_autocomplete ()
{
jQuery('.autocomplete').each(function(){
var url = el.title;
$(this).typeWatch({callback:function(){
$.post(url,
function(txt) {
var d = "asd asdasd asd asd
adas".split(" ");
$(this).autocomplete({data:d});
}
);
}});
});
}
P.S> typeWatch is used to avoid posting at every keypress
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---