I have this table where, When a user clicks on a row, should open a modal with some information regarding that row. Since the content of this Modal is on another HTML file within my project, I don't know how to accomplish it.
So far, I can do this for each row:
<tr data-toggle="modal" href="../clients/edit.html" data-id="10238" data-target=".clientEditModal">
<td>10238</td>
<td>eduardo@pingpong.com</td>
<td>14.10.2013</td>
</tr>
I'd like to do something like this via Javascript:
$(".table-clickable").find("tr").dblclick(function(){
$('.clientEditModal').modal('show');
});
Is there a way to specify an HTML file to load as a model using Javascript modal('show')
?