cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

ExpandingTextarea jQuery Plugin

As its name implies, ExpandingTextarea is a plugin that lets you create a multiline input control where the user can key in lengthy information, but instead of introducing a vertical scrollbar into the field to indicate entries already not visible, the text area itself increases in size as the use keys in more string of data.

There are two ways to use this plugin: one is with the use of a CSS class aptly called ‘expanding’

<textarea class=’expanding’></textarea> 

And the other is by calling the “expandingTextarea()” method.

$(document).ready(function () {
 $(“#txtNotes”).expandingTextarea();
});   

Making adjustments to the textarea’s size/appearance can be done by simple CSS.

textarea{
 min-height: 6em;
 max-height: 8em;
 width:400px;
}  

Some notable features about this plugin are:

  • Mobile friendly.
  • Wide browser support (IE6+, Safari, Chrome, FireFox, Opera).
  • No cols hacks or counting characters.
  • Resize friendly. That is, content automatically resizes without using the ‘window.resize’ event or JavaScript to calculate sizes.
  • Easy to style

You can find the Live Demo over at its jsFiddle page.

 

Related Posts

15 Great Free Fonts

Adding Instagram Badges to Your WordPress Profile

How to Create a Custom WordPress Registration Form with Flat UI

Making Your WordPress Widget Title Linkable With WP’s Plugin