1
Good morning, everyone,
I have a single-page html code where I control the 3 Divs view with show/hide via a menu.
But I would like to use a single button where as each div is displayed it has a different action. Ex:
DIV 1 ativada
function botão() {
abreHome();
}
DIV 2 ativada
function botão() {
abreCatalogo();
}
Try to explain your answer better.
– Edu Mendonça
I think I traveled there in the solution is to be a button only.. It went bad there. .rs.. With a button you would have to do some counter that at each click change the class or attr of the html element..
– user131072
Thanks for the help Hernani, I got the solution with what gcpdev published
– Skriza