Hide all links except for one in javascript?
<p>What is the best way to hide all links except for one in javascript? (jquery is okay)</p>

<p>Say I have the following:</p>

<pre><code>&lt;div id="choices"&gt; 
  &lt;div&gt;&lt;a href="#"&gt;A&lt;&gt;&lt;/div&gt; 
  &lt;div&gt;&lt;a href="#"&gt;B&lt;/a&gt;&lt;/div&gt; 
  &lt;div&gt;&lt;a href="#"&gt;C&lt;/a&gt;&lt;/div&gt; 
&lt;/div&gt;
</code></pre>

<p>I want to make it such that if a user clicks link A, B, or C, the div's that do not contain the one that was selected disappear and the choice selected pops up in an alert box. Upon clicking on a reset button, all the divs appear again as normal. </p>

<p>Example: User clicks A, results in B and C divs hiding. User kicks Reset button and all show up again.</p>

<p>How do I accomplish this?</p>

<p>NOTE: I have been assigning IDs to each of the A, B, C divs respectively and made a function where when the user clicks B, it calls a $(divnotclicked).hide() for the ones I want to hide. And for the reset button I just do .show() for each of them $(A).show(), $(b) $.show()(C).show().... but theres gotta be a way to do with without me assigning IDs to each of them. Im looking for the best way to do it.</p>

<p>Im looking for the best way to do this, preferably without manually calling functions for each of them or assigning IDs to each div within the "choices" div. Or having to call on each individual div to ".show" upon clicking the Reset button.</p>
