Is there other solution without ajax with I can call from js php file with other js functions? If I call with ajax js functions in php file doesn't work.
<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>