- By Viral Patel on June 17, 2009
Have you ever used textarea in your UI design to get text from user? (Ofcourse you must) :) You must have specified rows and cols attribute to define the height and width of the textarea, or by using CSS. By whatever mean you create your textarea, the width and height of the textarea is fixed. What if you want your user to change the width and height of the textarea or resize the textarea while she is entering the text?
Let us assume that following is your HTML code:
jQuery TextAreaResizer plugin example
Simple textarea + Resizer bar (grippie)
In the above code the textarea is made re-sizable by using jQuery plugin. All you have to do is to include jquery.textarearesizer.js in your HTML document where you have the textarea and call
Notice that we have passed class name .resizable in the jquery call $() and then called TextAreaResizer() method.
Get our Articles via Email. Enter your email address.