Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (48 sloc) 2.341 kb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jQuery Grab Bag - Auto-Growing Textarea Plugin</title>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://onehackoranother.com/feed/" />
<link rel="alternate" type="text/xml" title="RSS .92" href="http://onehackoranother.com/feed/rss/" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="http://onehackoranother.com/feed/atom/" />
<script type='text/javascript' src='javascripts/jquery-1.2.6.min.js'></script>
<script type='text/javascript' src='javascripts/jquery.autogrow-textarea.js'></script>
<link rel="stylesheet" href="stylesheets/main.css" type="text/css" />
</head>
<body>
<div id='container'>
<h1>
grab bag <span class='subtitle'>- assorted jQuery plugins</span>
</h1>
<div id='sidebar'>
<ul id='project-nav'>
<li><a href='index.html'>Plugin List</a></li>
</ul>
<ul id='ohoa-nav'>
<li><a href='http://onehackoranother.com/feed/' id='subscribe'>Subscribe for updates &raquo;</a></li>
<li><a href='http://onehackoranother.com/projects/'>Back to projects &raquo;</a></li>
<li><a href='http://onehackoranother.com/'>Back to onehackoranother.com &raquo;</a></li>
</ul>
</div>
<div id='main'>
<h2>Auto-Growing Textarea</h2>
<p>
A textarea which grows vertically as it becomes full. This implementation -
inspired by Facebook - relies on a hidden auxiliary <code>div</code>, preventing
flickering scrollbars.
</p>
<div class='caption'>Example:</div>
<pre>$('textarea').autogrow();</pre>
<textarea rows='6' style='line-height:1; font-size: 120%; width: 100%'></textarea>
<script type='text/javascript'>
$(function() {
$('textarea').autogrow();
});
</script>
<h3>Direct Link</h3>
<p><a href='http://github.com/jaz303/jquery-grab-bag/tree/master/javascripts/jquery.autogrow-textarea.js'>jquery.autogrow-textarea.js</a></p>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.