$(document).ready(function() { $("#player").click(function() { console.log("loading into main"); $("#main").load("player.html"); }); });