Submit the Value of the array not the key

Submit the Value of the array not the key

Hello. Im using the autocomplete plugin of jquery. Im very new at jquery. When i start writing in the text box, all the keys that fit the query would appear, but when i press submit, it only submits the key, I want the value not the key to be submitted. How can I do that? Thanks!