title: Pass data from div tags to javascript function
body: <p><strong>HTML</strong></p>
  
  <pre><code>&lt;li id="a1"&gt;
      &lt;div&gt;&lt;p&gt;Some Text1!&lt;/p&gt;&lt;/div&gt;
      &lt;div&gt;&lt;a href="#"&gt;&lt;/a&gt;Some Text2!&lt;/div&gt;  
      &lt;div&gt;&lt;input id="a1b" type="button" onClick="fun()"/&gt;&lt;/div&gt;      
  &lt;/li&gt;
  </code></pre>
  
  <p>How can I get <code>Some Text1!</code> and <code>Some Text2!</code> ,i.e, some text from first and second <code>div</code> and pass it to function <code>fun()</code> in third <code>div</code>?</p>