Template:ETH Zurich/injectHTML.js
function injectHTML(url, div,backup) { $.get(url, function(response) { div_element = $("#" + div); console.log(div_element); //check the console to see if it return any element or not div_element.html(response); //document.getElementById(div).innerHTML = response; }); }