Im trying to make some simple boxes that when clicked on drop down to give the user more information. This is obviously easy enough BUT I am really surprised with the issues I’m having in closing the other divs down when one opens.
Im using this code snippet:
and the link is :
Your routine works for me when I use the following markup. When I click on "China", it displays the first block and hides the second block and visa versa. I agree with Chris that you need to have a live link to your example and you should include the html markup as well because it is not clear what you are trying to do.