0
How to take the contents of the clipboard (Clipboard) and paste it into a text from the click of a button.
I found an upcoming jquery code, but I can’t reproduce what I need.
Below the code that shows the contents in an Alert at the time I give the CTRL+V:
$('body').on('paste', 'input, textarea', function(e)
{
setTimeout(function ()
{
alert($(e.currentTarget).val());
},0);
});
Below the image of my grid to lighten a little more what I need:
Could you explain better what you would like to copy and paste ? I didn’t understand what the download area would be in your print. And where would you like to paste this content ? It’s in some element or what ?
– Leo
Hi Leo, good afternoon! Actually just paste what’s in the clipboard. See the "Paste" button? The idea is to paste the text next to this button to make it easy for the user. The content that goes there can be copied in the same traditional way, with the right button or CTRL + C. What I really want is to make the "Paste" button play the contents of the clipboard in the next textbox.
– Vinicius Avanzi
I believe this question has the solution you are looking for: 'https://answall.com/questions/17030/maneira-cross-browser-copiar-texto-para-a- %C3%81rea-de-transfer%C3%Aancia-Clipboard '
– Leo