2
Hello friends it is possible with a mouse click to run the command Ctrl + v "paste" in an input with jquery?
i already have a script that copies everything inside the input. now I need another that when clicking on another input paste the copied text.
I was able to make it work on IE but not on Chrome
function paste() { document.execCommand('paste') }
Mouse click where? On the element, on a button? It would be good to [Dit] the question and give as many relevant details as possible, so that the question can be answered objectively. Here are some tips: [Ask].
– Bacco
Javascript/Jquery copy-paste command (Ctrl+c) and Copy and paste Javascript command
– Bacco
ok amended question..
– wildson
If you want to access the Clipboard is possible, however, unreliable regarding compatibility. But if you’re just copying and pasting from the same page, you could just save it to a variable.
– Daniel Omine