retrieve a value from an input element