Created updateInputFromSelect() to allow reuse