Successfully tested in: FF2 (vista, xp, mac, linux), IE6 (xp), IE7 (vista, xp), Opera 9.2 (xp, mac), Opera 9.5 (vista), Safari 3 (mac, xp).
Comments and fixes are very appreciated. optional parameters // $(elem).growfield( options )
additional functions (public interface)
parameters may be set in html attributes // tag attributes have priority
increase and decrease functions are working only in auto mode opera:
in opera, if you don’t have border style for textarea, plugin will set it (opera hides borders in overflow:hidden mode). in auto mode it won’t work at all. More than that, opera returns border:2px solid #00000 even if you don’t set it. :( known problems:
after restore (onfocus) with animation textarea sometimes looses cursor. :( // ff2, ie7xp
when reached maximum height, opera will jitter on every keydown :( // opera < 9.5 ctrl + up/down:
in opera and ie this shortcut doesn’t work properly. But you may use ctrl + whatever + up/down.
Download here: http://code.google.com/p/jquery-growfield/downloads/list