title: Copying text from the page and placing it in a input field when a button is clicked with PHP
body: <p>I'm looking to copy the text from a <code>&lt;p&gt;</code> element with the ID of code and put it in an input field with the data-field-id of 6197c68b4c806 when a button is clicked.</p>
  <p>How could I do this? I would like the code to be inline if that is possible.</p>