My page is loaded using this function, but if I don't refresh the page and go back to index it won't load other page normally all the PHP syntax, css, JavaScript is ignored by the other page. Why is that happening?
/* MENU */
$(".item").click(function() {
var item = $(this);
var doc = item.attr("doc").trim();
$.post(dok).done(function(result) {
$("#content").html(result);
}).fail(function() {
$("#content").load("support/page-error-404.php");
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>