title: How can I insert a paragraph node with click detection?
body: <p>So I already have the code:</p>
  <pre><code>function addOpt(opti, id) {
    document.getElementById(&quot;options&quot;).appendChild(document.createTextNode(opti))
    // ID WILL BE USED LATER
  }
  </code></pre>
  <p>but I now want to make it so that when you click on the text (opti) it runs a function.</p>