[Solved] jQuery multiple getElementByID
I think this will help you to achieve your goal. I have removed some unwanted details from your example, and try to keep it as simple as possible. <div class=”action” > <span class=”MyBtn” rel=”myModal1″ style=”color:orange”>Title 1</span> </div> <!– The Modal 1 –> <div id=’myModal1′ class=”modal” style=”display:none”> <!– Modal content 1 –> <div class=”modal-content”> <div class=”modal-header”> … Read more