Open cyansmiles opened 6 years ago
I did figure out, if I use the down arrow, I get my drop down, but if I try to search for words, it is failing. I have removed the extra tags, and I get the same problem.
My object is not searching properly.
I guess writing that out helped me figure it out.
valueKey: 'title',
$(document).ready(function(){
$("input#location").autocomplete({
showHint: true,
valueKey: 'title',
getTitle: function(item){ return item['title'] },
getValue: function(item){ return item['title'] },
source: [{
data: listings
}]
}).on('selected.xdsoft',function(e,datum){
//$("#mlsID").val("datum.mlsID");
//$("#listingID").val("datum.listingID");
//$("#communityID").val("datum.communityID");
//$("#builderID").val("datum.builderID");
});
});
I am only getting the first 20 items on the list when I use an object, it works fine when I dont. But I need to pass other data and it won't do what I need in the simple way.
I have spent hours on this and cannot figure out what I did wrong. Pagelink Pass: preview/website
Thanks.