My intention is the following, after generating the list of images by PHP, I wanted that when I clicked on any of the images it would open in a modal dynamically, where I would pass the image address by some parameter and it would open in bootstrap / jquery modal.
EX:
<a href="#" parametro="imagem1.jpg" id="abrirModal" ><img src="imagem1.jpg" /></a>
<a href="#" parametro="imagem2.jpg" id="abrirModal" ><img src="imagem2.jpg" /></a>
<a href="#" parametro="imagem3.jpg" id="abrirModal" ><img src="imagem3.jpg" /></a>
<a href="#" parametro="imagem4.jpg" id="abrirModal" ><img src="imagem4.jpg" /></a>
Can anyone help me?