Sonam
Sonam

Reputation: 33

textarea resize is not working in IE, I want resize-y in IE and it is working in chrome

I am developing an angular 4 project in that I have to create resizeable textarea only vertical in IE, It is working in chrome and another browser.

I have found some Jquery plugin for resizing in IE but it is not supporting for only vertical and I have multiple textarea in the same page.

This is a working example

CSS

.resizable {
   resize: vertical;
  min-height:150px;
}

HTML:

  <textarea class="resizable">
This paragraph is resizable in all directions, because
the CSS `resize` property is set to `both` on this element.
</textarea>

Upvotes: 3

Views: 4696

Answers (1)

Daut
Daut

Reputation: 2645

You cannot use resize in IE

https://caniuse.com/#feat=css-resize

You can use jQueryUI Resizable for textareas.

Include jQuery UI library in your project

then in your jquery code call the line below

$("#textareaId").resizable({ });

Upvotes: 2

Related Questions