4
I created a "dictionary" from A to Z , where when I want to see what is in the letter A, I click on it. Tté ai beauty. So that I don’t have to click one by one to find some meaning, I would like to put a function to expand everything from A to Z. I used with the loop `for", but it’s not working, I already researched and I don’t find anything. Here’s the code:
function expandirTudo() {
//Conta ao alfabeto de A a Z
for (var ch = 'A';ch <= 'Z';ch++) {
//Enquando tiver lista oculta (none), mostre a lista(block).
while(document.getElementById(ch).style.display == 'none'){
document.getElementById(ch).style.display = 'block';
}
return ch;
}
}
I don’t get it right. You want a button to expand everything?
– Jefferson Alison
You don’t really need to make all this turn around to hold such a simple event, see how it is not necessary to even know the lyrics in my reply @Lucasolivier
– Paulo Roberto Rosa