Closed Baswazz closed 8 years ago
One modal with multiple calls does not work. It only works with the first call, the rest of the calls do not trigger the modal.
Multiple calls:
<a id="demo02" href="#modal-02">DEMO02</a> <a id="demo02" href="#modal-02">DEMO02</a> <a id="demo02" href="#modal-02">DEMO02</a>
Modal:
<!--DEMO02--> <div id="modal-02"> <div id="btn-close-modal" class="close-modal-02"> CLOSE MODAL </div> <div class="modal-content"> <!--Your modal content goes here--> </div> </div>
Found the solution myself. It's because of the id that is unique. Changing it to a class fixed it.
One modal with multiple calls does not work. It only works with the first call, the rest of the calls do not trigger the modal.
Multiple calls:
Modal: