0
I have a page with some tabs that load content through the resource. load, I would like that after returning to this page the last clicked tab remains marked and the content called via load continues the same. How can I do that?
Example of the applied code:
jQuery("containerAbas span").click(function({
jQuery(this).removeClass("abaInativa").addClass("abaAtiva").siblings("span").addClass("abaInativa");
jQuery("#carregar").css("display","none").fadeIn("slow").load("pagina.html")
});
.abaAtiva{
margin:0 0.5% 0 0;
padding:10px 1% 0 1%;
height:35px;
background:#ff5800;
float:left;
color:#fff;
}
.abaInativa{
margin:0 0.5% 0 0;
padding:10px 1% 0 1%;
height:35px;
background:#c6c5c5;
color:#333;
float:left;
}
<div class="containerAbas">
<span id="aba1" class="abaAtiva">item 1</span>
<span id="aba2" class="abaInativa">item 2</span>
</div>
have you ever tried to do something? has some code to supplement your question?
– Gabriel Rodrigues
I’m sorry I couldn’t understand what you wanted, from a look at how to ask a good question? , and try to add more details.
– Guilherme Lautert