title: How do I get my prompt value to append to a unordered list using jquery?
body: <p>I am attempting to get a prompt value to attach to an unordered list and I cannot seem to get it to work.</p>
  <p>My button is:</p>
  <pre><code>&lt;button onclick=&quot;nameP()&quot;&gt;PLEASE CLICK&lt;/button&gt;
  </code></pre>
  <p>Here is my jQuery/Java code:</p>
  <pre><code>function nameP() {
  var name = prompt(&quot;Please enter your name&quot;); 
  document.getElementById(&quot;a&quot;).innerHTML = name;
  $('#a').appendTo('ul')}
  </code></pre>
  <p>my unordered list is</p>
  <pre><code>&lt;ul&gt;&lt;/ul&gt;
  </code></pre>
  <p>thank you for any help</p>