Keep CSS class when changing from input to textarea and vice-versa.