Possible Duplicates:
How do you handle oncut, oncopy, and onpaste in jQuery?
jQuery catch paste input
I have a textarea, on paste to that textarea I want to
- format pasting values
- append to textarea
could that be done in Javascript?
Possible Duplicates:
How do you handle oncut, oncopy, and onpaste in jQuery?
jQuery catch paste input
I have a textarea, on paste to that textarea I want to
could that be done in Javascript?
There is an onpaste event that works in modern day browsers:
$("#textareaid").bind("paste", function(){});
Problem with the event, it tells you that it is about to happen, but it doesn't give you what the user is pasting. JavaScript has restricted acccess to the clipboard and by default it is disabled. If the access is enabled you can read the clipboard data and than manipulate it.