Unable to show and hide div in an each loop
<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"&gt;&lt;/script&gt;

        &lt;script type="text/javascript"&gt;
            $(document).ready(function(){


            $(".a_faq").each(function(i){

            $(this).find(".question").click(function(){ $(this).find(".answer").show();   });

            });



            });

        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;

    &lt;div class="a_faq"&gt;
        &lt;div class="question"&gt;Where is everyone?&lt;/div&gt;
        &lt;div style="display:none;" class="answer"&gt;there&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="a_faq"&gt;
        &lt;div class="question"&gt;Where is the closest Starbucks&lt;/div&gt;
        &lt;div style="display:none;" class="answer"&gt;there&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="a_faq"&gt;
        &lt;div class="question"&gt;Where are my glasses?&lt;/div&gt;
        &lt;div style="display:none;" class="answer"&gt;there&lt;/div&gt;
    &lt;/div&gt;

    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>After clicking the question I want the ability to show and hide the repesctive answer. If possible, close other answers that are open. </p>

<p>Im stuck at this point, and don't know what to do.</p>
