title: Use javascript to pre-populate onclick content
body: <p>I have a button with an onclick like:</p>
  
  <pre><code>&lt;button id="startEdit" onclick="editMe('xxxx')"&gt;Edit This Record&lt;/button&gt;
  </code></pre>
  
  <p>Using javascript how can I pre-populate and replace the 'xxxx' content with something else?</p>
  
  <p>I tried something like :</p>
  
  <pre><code>&lt;script&gt;
  document.getElementById("startEdit").innerHTML = 'newstuff';
  &lt;/script&gt;
  </code></pre>
  
  <p>... but that just replaced the 'Edit This Record' part. I want it to replace the 'xxxx' area..</p>
  
  <p>Thanks
  Dave</p>