Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

How to eliminate copy & Paste in textarea in javascript

 
srinivas rao
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Report post to moderator
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".

- Brent
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic