set select from input fields