javascript - Autopopulate input based on autocomplete from other input -


i have list of colors name , hex value; have 2 input fields; 1 input field user can start writing name of color, list makes suggestions using jquery autocomplete.

in second field, user can pick or write hex value. hex value auto complete if user picks value previous autocomplete list.

how go ?

https://js fiddle.net/bhgohk63/ 

please :)


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -