I would like to 'create' the copy command and the paste command with jQuery.
I have a form and I need to put a paste button on it to make it easier for the user
The user clicks to copy the embedding URL of youtube and in my form would have a "paste in the input" button to facilitate
I researched but did not find anything about it. I found copy buttons but not paste.
Example of what I need:
$(".pasy").click(function(){
var copy = document.execCommand('paste');
$("#inputyou").val(copy);
});
When you click the .pasy button, the input receives "false" instead of the text from the clipboard.