How to eliminate copy & Paste in textarea in javascript
srinivas rao
Greenhorn
Joined: Nov 21, 2007
Posts: 5
posted
0
Kindly, helpe me in this regard,
I have a textarea and should accept only alphanumeric characters upto 500 characters and if we do copy and paste more than 500 characters it should take 500 characters and remaining should eliminate.
kindly, provide me the code how to perform this
Brent Sterling
Ranch Hand
Joined: Feb 08, 2006
Posts: 948
posted
0
This is not really a Struts question. I know that there are some pages in my application that use JavaScript to limit the length. I suggest that you jump over to your favorite search engine and search for "limit textarea size".
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.