You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$('#data').autocomplete({ source: ["sample Data 1", "sample data 2", "sample data 3"], minLength: 3, select: function(event, ui) { $('#data_id').val(ui.item.id); event.preventDefault(); }, focus: function(event, ui) { event.preventDefault(); $(this).val(ui.item.label); }, change: function(event,ui) { // Disallow text except from array list if (!ui.item) { $(this).val(''); $('#data_id').val(''); $(this).focus(); } }, });
after selecting the result form the first search when i tried to select item for next time (it occurs for each) i was unable to do that. I was testing it in electron js.
The text was updated successfully, but these errors were encountered:
$('#data').autocomplete({ source: ["sample Data 1", "sample data 2", "sample data 3"], minLength: 3, select: function(event, ui) { $('#data_id').val(ui.item.id); event.preventDefault(); }, focus: function(event, ui) { event.preventDefault(); $(this).val(ui.item.label); }, change: function(event,ui) { // Disallow text except from array list if (!ui.item) { $(this).val(''); $('#data_id').val(''); $(this).focus(); } }, });
after selecting the result form the first search when i tried to select item for next time (it occurs for each) i was unable to do that. I was testing it in electron js.
The text was updated successfully, but these errors were encountered: