I even know the PHP and Javascript, the problem is that I do not know how to dynamically create the modal for each click on a link, bring specific information from that link. If you click user 1 , bring information in the modal window of user 1, if you click user 2 , show user information 2, and so on.
This is what I have so far, I'm not very experienced in Jquery, I think that gives my greatest difficulty in solving this problem
$(document).ready(function()
{
//Show modal box
$('.showdialog').click(function(e) {
$('#dialog').show();
e.preventDefault();
})
//Hide modal box
$('.closeModal').click(function(){
$('.mask').hide();
});
});
<a href="?acao=editar&idusuario=1" class="showindow">Usuário 1</a>
<a href="?acao=editar&idusuario=2" class="showindow">Usuário 2</a>
Here is a list of links coming from the database, in the results of the database, there is no error, outside the window the results appear normally.