javascript - Textarea height based on placeholder -


i'm trying solve problem textarea height if placeholder showing. text resizing i'm using: monospaced/angular-elastic works fine.

my problem placeholders:

is possible adjust height of placeholder based on placeholder's height?

textarea {           min-height: 18px;           display: block;           color: #4b565c;           word-wrap: break-word;           resize: none;           overflow: hidden;           width: 100%;           padding: 0;           border: 0;           display: block;           line-height: 1.4;         } 

html:

<textarea         msd-elastic         ng-model="ng.model"        ng-trim="false"        ng-focus="ng.fnfocus()"        ng-blur="ng.fnblur()"        ng-paste="ng.fnpaste($event)"        ng-change="ng.fnchange()"        placeholder="ng.placeholdertext"> </textarea> 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -