I was looking for jQuery UI autocomplete because I needed on <input /> , but the problem is that I need to pass the identifier of the completed name. Let me explain:
I have an array of names:
$names = array( array('name' => 'John', id => '1'), array('name' => 'Sarah', id => '2'), array('name' => 'Josh', id => '3) );
And then, with AJAX, the input will be autocomplete with a single array name, but then when I submit, I need an identifier, not a name. How can i manage?
Thanks in advance
jquery jquery-ui autocomplete jquery-ui-autocomplete jquery-autocomplete
ipalaus
source share