I need help with JQuery UI Autocomplete Combobox. I cannot get the \"CHANGED\" event to fire no matter what. I have pulled together this widget from various examples.
<simpler way to detect the user has changed the combobox Try this:
$("#combobox").combobox({
select: function (event, ui) {
alert(this.value);
}
});
You can use this also:
$( "#combobox" ).change(function() {
alert( ".change() called." );
});
Awesome and almost perfect! It seems the above statement does not initialise the combobox to default selected values. I got it working by doing this:
jQuery("#select_address").combobox({
select: function (event, ui) {
alert(jQuery(this).attr('id'));
}
});
jQuery("#select_address").val("default").combobox("refresh");