I have working code but my code doesn't include with ajax js code from php file. Problem is that javascript from second script is not working. Ajax call can't enable to execute js script from second file Here is ajax code. My question is this good call for php file with working js functions because those working js functions does't work if I call them with this ajax code?
<script>$.ajax({
url: "getSubcategorieFormUpdate.php?id=" + activeSubcategorie + "&sifra_novogradnja=<?php echo $sifra_novogradnja ?>",
method: "GET",
dataType: 'text',
success: function (result) { document.getElementById("advertForm").innerHTML = result;
}
});</script>