Add support for textarea and select elements