I a button element on a page that opens a modal both are the same page , and i want to pass data from the button to a modal when it is opened. Is there a way achieving that functionaly without or with javascript/jquery ? Here is the html snippets of my markup
<button class="btn-icone bg-warning" data-toggle="modal" data-target="#modaleIcones"
data-id=1235>
<i value=Radiology class="fa fa-edit"></i> </button>
<div class="modal fade" id="modaleIcones">
<div class="modal-dialog" >
<div class="modal-header">
</div>
<div class="modal-body">
<a href="#" id="iconLink1">
<img src="myImg.png">
</a>
</div>
</div>
</div>
I need to pass data-id=1235 from the button to the modal-body anchor element with id="iconLink1". I would appreciate any help