让 textarea 自动增长高度的 JQuery 插件。

<!DOCTYPE html>
<html>
<head>
    <title>fixtextarea</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<textarea id="textareaid"></textarea>
<script src="jquery-1.11.1.min.js"></script>
<script src="autotextarea.js"></script>
<script type="text/javascript">
    $(function(){
        $("#textareaid").autotextarea({
            min: 100,
            max: 150,
            bottomMargin: 20
        });
    });
</script>
</body>
</html>