added support for textarea

assigned inputType to null since the value of the last item seems to stay through the loop. Making the code think the textarea was a select. Probably because of hoisting.