I've done some searching, and this seems to be a not uncommon problem, but none of the solutions posted seem to be working for me.
I've tried a few different methods:
jQuery(document).ready(function(){
jQuery( "#on-good-terms-add-term" ).autocomplete({
source: ongoodtermsavailableTags,
});
jQuery( "#on-good-terms-add-term" ).result(function(event, data, formatted) { alert(data); });
});
and
jQuery(document).ready(function(){
jQuery( "#on-good-terms-add-term" ).autocomplete({
source: ongoodtermsavailableTags,
}).result(function(event, data, formatted) {
alert(data);
});
});
Both give me the same console error. Would appreciate any assistance. Thanks