<!-- that hide and sho class.......-->     
                  
                  
                        <button onClick="myFunction()" class="hdivb1" ><b><u>Itinerary</u></b></button>
                  
                  
                    <div id="hdiv1">
                  
                  
                        This is my DIV element. that div in i want hide and show 
                  
                  
                        </div>
                  
                  
                  <?php
                  
                  
                  }
                  
                  
                  ?>
                  
                  
                      <script>
                  
                  
                  function myFunction() {
                  
                  
                    var x = document.getElementById("hdiv1");
                  
                  
                    if (x.style.display === "none") {
                  
                  
                      x.style.display = "block";
                  
                  
                    } else {
                  
                  
                      x.style.display = "none";
                  
                  
                    }
                  
                  
                  }
                  
                  
                  </script>
                  
                  
                  ..here i want to when i click on button ...so <div id="div1">  div class hide and show.....
                  
                  
                
You can simply toggle class Example
ohno
Обсуждают сегодня