document.getElementsByClassName("content");
                  
                  
                          function a(b) {    if(con[b-1].style.display=="none")
                  
                  
                                  con[b-1].style.display= "block";
                  
                  
                              else
                  
                  
                                  con[b-1].style.display= "none";
                  
                  
                          }   
                  
                  
                   to when i click a button some text display but for first time i open page i need to double click for displaying text but after that they display just with one click,why this happen?
                  
                  
                
Maybe you need to declare your “content” class element before this procedure?
Обсуждают сегодня