Front End js drop down menu #1608
Unanswered
evertonProgramadorCriativo
asked this question in
Perguntas e Respostas
Replies: 1 comment
-
@evertonProgramadorCriativo beleza? Mano, você pode colocar esse seu código no Codepen? Para conseguirmos visualizar melhor? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ola amigos eu estou querendo fazer uma exceção para que quando eu clica no input o menu suspenso nao sair e deixa o usuario escreve dentro do input

-------------js--------script---------------------------
function myFunction2() {
document.getElementById("int").classList.toggle("show");
}
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
}
--------------------------------------html----------------
-----------------------------------scss-----------------------------------------------
.show {display: block;}
Beta Was this translation helpful? Give feedback.
All reactions