0

I want paste clipboard in many text fields so I want to create a paste button to paste anything in clipboard to a text field.

How can I create that??

mplungjan
  • 169,008
  • 28
  • 173
  • 236
aynaz
  • 89
  • 10
  • 1
    Welcome to SO. Please visit the [help] to see what and how to ask. HINT: Post effort and code. As it is now this question is off topic and will be voted down and closed – mplungjan Mar 11 '17 at 20:45
  • PS: Start with one of the many duplicates: http://stackoverflow.com/questions/16623797/paste-function-in-jquery-java-script-on-button-click – mplungjan Mar 11 '17 at 20:46
  • Possible duplicate of [Paste function in jquery/java script on button click](http://stackoverflow.com/questions/16623797/paste-function-in-jquery-java-script-on-button-click) – RasmusW Mar 11 '17 at 21:05

1 Answers1

1

You can't make a "paste" button PHP. When you say paste, I am assuming you are referring to pasting what is in the clipboard. However, this can be accomplished through JavaScript.

Here's a super nice resource on how to copy and paste in JavaScript:

https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/

Neil
  • 14,063
  • 3
  • 30
  • 51