select inputs instead of the direct element