jQuery page: http://plugins.jquery.com/project/jGrow
jGrow is a jQuery plug-in that makes the textarea adjust its size according to the length of the text.
It works smoothly with jQuery 1.2.x. It was tested on IE6/7, Firefox 2.0.x and Opera 9.x, and no bug was spotted yet.
English translation: Tuna TOKSÖZ.
Click here for release notes.
jquery-1.2.3.min.js (15 kb)
jGrow-0.2.js (1 kb, 04.03.2008)
jGrow-0.1.js (1 kb, 27.01.2008)
jGrow is still in its first release and may contain bugs. Please report bugs by clicking here. If you have any suggestions, please don't hesitate to write them to berker.peksag_gmail_com.
1st step: Add the latest jQuery library to your page.
<script type="text/javascript" src="jquery-1.2.3.min.js"></script>
2nd step: Add jGrow to your page.
<script type="text/javascript" src="jquery.jgrow-0.2.js"></script>
You can start using jGrow with two simple steps.
$(document).ready(function() {
$("textarea#adres").jGrow({ rows: 25 });
});
<textarea name="frmAdres" id="adres" cols="40" rows="4"></textarea>
Sample 1:
$("textarea#adres").jGrow({ rows: 25 });
Sample 2:
$("textarea#adres2").jGrow({ rows: 8 });
Sample 3:
$("textarea#adres3").jGrow();
You can contact me at berker.peksag_gmail_com. Please report bugs via bug report form.