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
src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'>
(Maximum characters: 150)
Characters left
No comments:
Post a Comment