1
I have 4 topics, and I would like to display only what I clicked, and if another one is open close, I know how to do this with jquery, but I’m doing it in a way that I don’t think is the most "correct", I leave the code very extensive putting many restrictions and etc.
<a class="topico1">
<a class="topico2">
<a class="topico3">
<a class="topico4-exibir">
I would like to click on another topic it gain the display value and what is with this value currently lose it. I in this case would do a function on click, that by clicking on the class topico3, check if it has the sub class display, if it is removing the class sub class display from all others, and if it has not added and removed from all others, So in case I would do this same function for all classes, it takes a lot of time and code, could I do it in an easier way? I hope it didn’t get too complicated to understand.
Put the code of how you are doing with jQuery together in question, sometimes it may be right, just fix something on top already gets good.
– AnthraxisBR