Is it possible to pass a variable from anattribute to a modal. I need to use the value of the variable to return data from a*.php` function.enter code here
The call to the Modal with the record value in the data-id attribute.
<a href='#openModal' value='Edit' data-id=".$events['evnt_id'].">Edit</a>;
This will be Modal that will be displayed.
<div id="openModal" class="modalDialog">
<div>
<a href="#close" title="Close" class="close">X</a>
<table border="1" width="600" height="500" cellpadding="5" cellspacing="0">
<tr>
<td>
$detail = Stuff->getDetails($_GET['data-id']);
</td>
</tr>
</table>
</div>
</div>