Handling selected text is different for different browsers. How to use it: Import the highlight-ta’s JavaScript … This page shows you to how to add (append) or replace text in a text area or text field. A textarea doesn’t have a value attribute, unlike an input field. For example, If you are going to send SMS from application then there you can use this validation for apply characters limit. for other browsers, download a base64 DECODE routine, and name the function "atob". Hence I have built a MaxLength jQuery plugin which simulates the working of the normal MaxLength with the help of JavaScript and jQuery. Using Code . Given an HTML document containing a