title: Javascript if/else onclick?
body: <p>The following div's are displayed onclick. How can I make it display a different message in the div "content" depending onclick. I already have the javascript to display the div's Test1 and Test2. I just wanted to add the ability to also add a message to the div "content". Sorry for the confusion.</p>
  
  <pre><code>&lt;a href="" onclick="showThis('test1');return false;"&gt;Test 1&lt;/a&gt;
  &lt;div class="test1"&gt; &lt;p&gt;some content&lt;/p&gt; &lt;/div&gt;
  
  &lt;a href="" onclick="showThis('test2');return false;"&gt;Test 2&lt;/a&gt;
  &lt;div class="test2"&gt; &lt;p&gt;some content&lt;/p&gt; &lt;/div&gt;
  
  
  &lt;div id="content"&gt;  
  
  &lt;!-- if clicked on Test 1, display some message. And if clicked on Test 2, display some other message --&gt;
  
  &lt;/div&gt;
  </code></pre>