Using jQuery, resize textarea as more and more text is typed in it.
- Features
- Documentation
- Downloads
- Simple usage
- Set max rows that the textarea can grow
- And more
Basic auto resize textarea call
1
2
3
4
5
|
<script type="text/javascript">
$(document).ready( function() {
$('textarea').autoResizeTextAreaQ({"max_rows":8});
});
</script>
|
Auto resize textare options
1
2
3
4
5
6
7
8
9
10
11
12
|
// default options
// ya prob want to use
max_rows: 10, // # - max rows to resize too
// ya may want to use, but defaults should be ok
extra_rows: 1, // # - nbr extra rows after last line ie padding; 0|1 optimal
// ya should really specify in html
rows: null, // null|# - null infer from html; # override html
cols: null, // null|# - null infer from html; # override html
debug: false // true|false - turn on|off console.log()
|
File:
Download
Version: 0.1
Released: 2010-07-21