How do you write a role for a jQuery selter?



  • $("#hitsale button, #photogalery button").click(function() {
    
    })
    

    We need to open a floating window on the clip for the assigned buttons.#callOrderModal)



  •  <style>
      .popap {
        position: absolute;
        width:200px;
        height: 200px;
        background: #ccc;
        top: 0px;
        left: 50%;
        display:block;
      }
    
      .hide {
        display:none;
      }
    </style>
    
    <div id="callOrderModal" class="hide">
      Popap
    </div>
    
    <div id="hitsale"> Кнопка</div>
    
     <script>
    $('#hitsale').click(function() {
      $('#callOrderModal').removeClass('hide');
      $('#callOrderModal').addClass('popap');
    });
    </script>
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2