I have the following HTML structure
<div class="store"><a href="#">GERMANY</a></div>
<div class="store_details">
<p>Stores in Germany</p>
</div>
</div>
<div class="store"><a href="#">ITALY</a></div>
<div class="store_details">
<p>Stores in Italy</p>
</div>
</div>
<div class="store"><a href="#">FRANCE</a></div>
<div class="store_details">
<p>Stores in France</p>
</div>
</div>
What I would like to do is to write a jQuery script that at first will hide the contents of "store_details" div for each store. When a user clicks on a store name (country), the script has to display that "store_details" div and hide the contents of other "store_details" divs.
I managed to do the initial hiding of divs, but I got stuck with the other steps.
Any help is appreciated.
Thanks.