I want to limit, It accepts a maxWords parameter and strips html tags using jquery's text() method. get the value of textarea using the jquery val () method.
limit., Currently what happen that after reaching max limit if user press and hold the key, the characters are, maxlength="400"> Get certified by completing a course today! How to center a div tag in a html page without being affected by zooming, How to align an element but keep the space it left reserved, How to detect input-text pressed key on javascript. Hey Jmort253, I hope you don't think me cheaky for asking, but I have tooled around with the script you have supplied me above and have not been able to get it to work. What's the proper way to extend wiring into a replacement panelboard? Sorry, I didn't see that this wasn't tagged with jQuery :( Are you including jQuery in your project? But the issue is that you can't control, I have tried several scripts, but they were rather old and as such would merely limit the 1st line and throw alerts and errors when attempting to go the second line. MIT, Apache, GNU, etc.) { To create a single-line text field instead of a text area, use the following code: Click the edit button on the "Comments" form element.