title: Using Javascript / Jquery to change text in div upon button click
body: <p>here is the array</p>
  
  <pre><code>var copyText= [
  'this is the first line',
  'Simply put, the second line',
  'impressed by the third line.'
      ];
  </code></pre>
  
  <p>These don't work ...</p>
  
  <pre><code>$("#thisbutton").click(function () {
  $("#thetext").innerHTML("meow meow");
  });
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$("#thisbutton").click(function () {
  $("#thetext").innerHTML(copyText[1]);
  });
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$("#thisbutton").click(function () {
  $("#thetext").text(copyText[1]);
  });
  
  
  $("#thisbutton").click(function () {
  $("#thetext").html(copyText[1]);
  });
  </code></pre>
  
  <p>What I am missing?  thks.</p>