title: How can I call div tag element with another div tag element using onclick function
body: <p>I'm developing an application with Phonegap framework. I want to know how can I call one div tag element with another tag element using onclick Javascript function.</p>
  
  <p>Here is my code:<br>
  I need to display second image onclicking the first image. (With CSS style class names:visible/invisible)</p>
  
  <pre><code>&lt;div id="abc" class="visible"&gt;
  &lt;img style=" z-index:-1" src="icons/firstimage.jpg" width="100%" height="100%" border="0" alt="logo"&gt;
  &lt;/div&gt;
  
  &lt;div id="def" class="invisible"&gt;
  &lt;img style=" z-index:-1" src="icons/secondimage.jpg" width="100%" height="100%" border="0" alt="logo" &gt;
  &lt;/div&gt;
  </code></pre>