I am currently developing a webpage using the Foundation 5 framework that features a table of information. Each row in the table contains a link that, when clicked, opens a specific modal displaying detailed information related to that row. I want to add a "print this information" button within each modal. Here is an example of my code:
<div id="detailModal1">
<a href="javascript:window.print()" class="button"></i>Print Modal 1 Info</a>
<div id="printableInfo1">Modal 1 information here</div>
</div>
<div id="detailModal2">
<a href="javascript:window.print()" class="button"></i>Print Modal 2 Info</a>
<div id="printableInfo2">Modal 2 information here</div>
</div>
<div id="detailModal3">
<a href="javascript:window.print()" class="button"></i>Print Modal 3 Info</a>
<div id="printableInfo2">Modal 3 information here</div>
</div>
If you have any suggestions or solutions, feel free to share them. Thank you for your assistance!