I have this html:
WhenIclickonsaibamais
,amodalopenswiththeinformationaccordingtotheplan.
Thehtmlandmodalcontentisbasicallythis:
<divid="abrirModal" class="modalDialog">
<a class="close" title="Fechar" href="#fecharModal">X</a>
<div class="modal">
<div class="description_service">
<span class="title_modal"><?php echo $title_modal; ?></span>
<span class="text_modal"><?php echo $text_modal; ?></span>
</div>
</div>
</div>
The two are the same, what changes is the content (title and text).
So, in order not to create two different modals, I want to know how I can do it: When you click on learn more about Plan 1, the content is from Plan 1, and when you click on Plan 2 logically open with the contents of the Plan 2.What would be the easiest way to do this?
PS: The modal is only generated with CSS .