Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery textarea autosize

$("textarea").keyup(function(e) {
    while($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
        $(this).height($(this).height()+1);
    };
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #textarea #autosize
ADD COMMENT
Topic
Name
5+3 =