I have a jquery token tagit plugin and I want to bind to the paste event to add items correctly.
I'm able to bind to the paste event like so:
.bind("paste", paste_input)
...
function paste_input(e) {
console.log(e)
return false;
}
How can I obtain the actual pasted content value?
I recently needed to accomplish something similar to this. I used the following design to access the paste element and value. jsFiddle demo
This work on all browser to get pasted value. And also to creating common method for all text box.