$(document).ready(function () { $('#navbar').load('nav.html') console.log("ok") // });