I have a div
that has its content loaded after loading the rest of the page. It is called by a button via AJAX. I have another button inside this content that would call a Javascript function to confirm a page targeting. But when it's inside the loaded content the button does not work.
Follow the function code.
<script language="Javascript">
function confirmacao(aluno) {
var resposta = confirm("Deseja remover esse aluno?");
if (resposta == true) {
window.location.href = "del_aluno_done.php?aluno="+aluno;
}
}
</script>