After including a .html file inside a div with a load, the jquery code stops executing. Does anyone know why this happens and how to solve it?
$(document).ready(function(){
var pathHtml = "src/html/";
var left = pathHtml + "left/";
function loadPage(section, page){
$.ajax({
type: "GET",
url: "",
beforeSend: function(){
$(section).html("<div class='loader'></div>");
},
success: function(){
$(section).load(page + ".html");
}
});
};
$("#wall").load(left + "wall.html");
$("#url, .font-strong").click(function(){
loadPage("#left", left + "profile");
});
});