2
I have this html:
When I click on saiba mais
, a modal is opened with the information according to the plan.
The html and modal content is basically this:
<div id="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 equal, what changes is the content (title and text).
So in order not to have to create two different modals, I want to know how I can do it so that: When you click on more of Plan 1, the content is Plan 1, and when you click on Plan 2 logically opens with the content of Plan 2.
What would be the easiest way to do that?
PS: Modal is generated only with CSS.