support select instead of form.elements. Fixes #537