In jQuery How to handle pasta?

Possible duplicates:
How do you handle oncut, oncopy and onpaste in jQuery?
jQuery patch input tab

I have a text box on the insert in this text box. I want to

  • value insertion format
  • add to textarea

can be done in javascript?

+5
javascript jquery paste
Aug 23 2018-11-11T00:
source share
1 answer

In modern browsers, the onpaste event works:

$("#textareaid").bind("paste", function(){}); 

The problem is with the event, it tells you that this will happen, but it does not give you what the user is inserting. JavaScript has limited access to the buffer and is disabled by default. If access is allowed, you can read the clipboard data and then manipulate it.

+12
Aug 23 '11 at 11:14
source share



All Articles