Set value of hidden input from select box during initialization.