title: how to pass some getElementById inside onclick
body: <p>I have this: </p>
  
  <pre><code>&lt;div id="atc_images"&gt;&lt;/div&gt;
  &lt;textarea id="img" style="display:none" rows="30" cols="30" name="cur_image"&gt;&lt;/textarea&gt; 
  
  &lt;input name="invia" type="submit" value="Invia" onclick="document.getElementById('img').innerHTML = getElementById('atc_images').innerHTML";&gt; 
  </code></pre>
  
  <p>So I send to <code>submit.php</code> the content that will be generating inside <code>&lt;div id="atc_images"&gt;&lt;/div&gt;</code></p>
  
  <p>How can I pass multiple <code>getElementById</code> all at one time when <code>&lt;input type="submit"..&gt;</code> is clicked?</p>
  
  <p>I want something like this:</p>
  
  <pre><code>&lt;input name="invia" type="submit" value="Invia" onclick="document.getElementById('img').innerHTML = getElementById('atc_images').innerHTML &amp;&amp; document.getElementById('title').innerHTML = getElementById('title_inside_another_div').innerHTML";&gt;
  </code></pre>