There is a way i can manually trigger the select
and pass custom data
into it?
I look into this question, but this just automate the ui and click
on the dropdown item.
My jQuery autocomplete initialization is look like this:
$("#id_full_name").autocomplete({
source: "/messages/fax/contact_autocomplete/",
minLength: 1,
focus: function(event, ui) {
event.preventDefault();
},
select: function(event, data) {
if (true) {
/* Do something */
} else {
/* Do something */
};
}
}