-4
Good afternoon, I’m trying to configure my menu by clicking appear the sub menu, I just don’t know why not calling, if anyone has a suggestion. (OBS: I put the <script type="text/javascript" src="js/script.js"></script>
on the menu page).
Código Menu:
<nav class="meen">
<div>
<ul>
<li>
<a href="#" class="oculto">SALA DE AULAS VIRTUAIS</a>
<ul class="itenbtn">
<li><a href="#">CURSOS ONLINE & AULA +</a></li>
<li><a href="#">CURSOS $ CONCURSOS</a></li>
</ul>
</li>
</ul>
</nav>
<script type="text/javascript" src="js/script.js"></script>
</div>
</body>
</html>
Código CSS:
.meen{
background: #15aebc;
width: 250px;
height:100%;
}
.meen ul{
padding: 1px 1px;
background: #15aebc;
height:100%;
width:100%;
list-style: none;
}
.meen ul li{
line-height: 50px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.meen ul li a{
font-family:'Poppins', sans-serif;
color: white;
font-size: 15px;
text-decoration: none;
}
.meen ul li:hover{
background: #118c97;
}
.meen ul ul{
display:none;
}
.meen ul .itenbtn.mostra{
display: block;
}
Código Script:
$('.oculto').click(function(){
$('.meen ul .itenbtn').toggleClass('mostra');
});
Hi, Robson, whenever possible try to leave your code written in the question and not as print, this helps anyone to answer your question if it is necessary to change something.
– Lucas Ayrosa
Amended, thank you for the advice, now if you can help me in this matter thank you. Hugs.
– Robson Rocha