1
want that when clicking on the link of the first page, it goes to the second page and makes the function JS, that is to show only what belongs to the sport of the link
ie I want to click on the link of the first page and go to the second and be activated the js on the second by the click of the first page
I thought of something with anchor but I found no solution
this is page 1
<div>
<ul id="Menu1">
<li class="Esporte"><a href="Pagina2.html"><p>Futebol</p></a></li>
<li class="Esporte"><a href="Pagina2.html"><p>Basquete</p></a></li>
<li class="Esporte"><a href="Pagina2.html"><p>Outros</p></a></li>
</ul>
</div>
Page 2
<div class='Modalidade'> <p class='Esporte1'> Futebol </p></div>
<div class='Modalidade'> <p class='Esporte1'> Basquete </p></div>
<div class='Modalidade'> <p class='Esporte1'> Outros </p></div>
JS
$('#Menu1 .Esporte').click(function(){
var Esportes = $(this).text();
$('.Modalidade').hide();
$('.Modalidade .Esporte1:contains(' + Esportes + ')').parent().show();
});
@Ney you’ve done this question and you solve the above problem using itself!
– Brunno