1
I wish that with this code I could start a hidden div that when I click on the button the hidden div was visible and the visible hidden with the same button.
I was using the following script:
function Mudarestado(el) {
var display = document.getElementById(el).style.display;
if(display == "none")
document.getElementById(el).style.display = 'block';
else
document.getElementById(el).style.display = 'none';
}
How can I control only a div that already starts in sample and when the hidden click is done, and with another return to the original state.
And it wouldn’t just be doing the same thing with the other div, but reversing the display value?
– Woss
Friend could give an example ?
– YH Software