Answers for "textarea resizable jquery"

CSS
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
0

make textarea not resizable

You can either apply this as an inline style property like so: 
<textarea style="resize: none;"></textarea>
or in between 
<style>...</style> element tags like so: 
textarea { resize: none; }
Posted by: Guest on August-09-2020

Browse Popular Code Answers by Language