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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -