hello, i have this form:
<form action="" method="get" style="margin-left: 2em"> <input id="companies" type="text" name="company" value="" size="40" /> <button type="submit" class="button-search">Search</button> </form>
my json comes from this
http://localhost:8080/;companies?name=aba
and returns a valid json like:
{"name": "aba", "title": "Aba"}, {"name": "abak", "title": "Abak"}]
<script language="javascript">
$(function() {
$("#companies").autocomplete({
source: ";companies",
minLength: 2,
select: function(event, ui) {
// perhaps do something with these?
name = ui.item.name;
title = ui.item.title;
}
});
});
</script>
i get no results in the list being displayed!
what am i missing here?
thanks