I'm trying to insert a variable within a div (#cityInput) upon jQuery autocomplete selection. What am I doing wrong?
var options = ["California", "Seattle", "Portland", "San Francisco"];
$(function() {
$("#citySelect").autocomplete({
source: options,
minLength: 2,
select: function() {
$('#chooseCity').dialog('close');
$('#cityInput').append('airline');
},
});
});