Answers for "jquery textarea autosize"

0

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);
    };
});
Posted by: Guest on January-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language