I have a dynamically list of records created like this:
Option 1 <a href="#modal" data-id="1">delete</a>
Option 2 <a href="#modal" data-id="2">delete</a>
Option 3 <a href="#modal" data-id="3">delete</a>
Option 4 <a href="#modal" data-id="4">delete</a>
and the Remodal window (the source for more information is here https://github.com/VodkaBears/Remodal#remodal):
<div class="remodal-bg">
<div class="remodal" data-remodal-id="modal">
<button data-remodal-action="close" class="remodal-close"></button>
<h1>Deleting record</h1>
<p>
Are sou sure?
</p>
<br>
<button data-remodal-action="cancel" class="remodal-cancel">Cancel</button>
<button data-remodal-action="confirm" class="remodal-confirm">OK</button>
</div>
All works ok if I push on delete, the modal Window opens but... how I know that I clicked on a record with ID 3 or... ID 2... so I can send it to my jQuery ajax and delete it in my database if finally I press OK button in modal window? Thanks!