Hi experts I am trying to work with autocomplete in an HTML form that will INSERT a row in Database. User must select a NAME in an autocomplete FIELD but this need define the ASSOCIATED ID to FORM SUBMIT. The array is build from a database query and for now receive just NAME array. Assuming that i could get an array like : [{name=‘abc’,id=‘10’},{name=‘def’,id=‘20’}]
How should I use this array in autocomplete to get the behaviour i need ? Any comments are welcome
I don’t know what are you doing but I think using a select would be more useful.
Hey u/Slash137 thanks per reply. Yeahh i have tried first with select but the list is too long so I would like to use typping to reduce the list.
Members
Online