Monday, August 17, 2009

Limit Number of Characters in a TextArea using jQuery

The MaxLength property works for a textbox but not for a TextArea. I recently bumped into a JavaScript solution which demoed how to Limit the Number of Characters in a Textarea or Text Field. I thought of replicating the functionality in jQuery and here’s what I came up with

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Limit Number of Characters in a TextArea






(Maximum characters: 150)

Characters left

No comments:

Post a Comment