I have this code in jquery:
var data = <?php echo $data; ?>;
$("#contact_email").autocomplete({
source:data,
select: function(e, ui) {
e.preventDefault()
$(this).val(ui.item.label);
$("#contact_email_sequence").val(ui.item.value);
GetCustomerDetails();
}
});
the autocomplete is working fine, however its not running my GetCustomerDetails
function on select.
when i select an option from the autocomplete list the list does not dissapear however the option is selected into the input field