1
I would like to 'create' the copy command and paste command with jQuery.
I have a form and need to put a paste button on it to make it easy for the user
The user clicks to copy the youtube embed URL and in my form would have a "paste in input" button to facilitate
I searched but found nothing about it. I found copy but paste buttons not.
Example of what I need:
$(".pasy").click(function(){
var copy = document.execCommand('paste');
$("#inputyou").val(copy);
});
Where by clicking the . Pasy button, the input gets "false" and not the clipboard text.
This library is quite famous in the community: https://github.com/zenorocha/clipboard.js/
– Murillo Goulart
Do you want that paste button to simulate Ctrl+V typed? That’s it?
– andrepaulo
http://stackoverflow.com/questions/22581345/click-button-copy-to-clipboard-using-jquery
– Lucas
@andrepaulo that’s right, I want the boot that does the function Ctrl + v
– Jonnys J.
@Murillogoulart this library does the copy function, I also need the paste function
– Jonnys J.