Load HTML template with JavaScript

Use jQuery and the .load() ( http://api.jquery.com/load/
) method to inject the loaded document into the DOM.

$(function() {
    $('#content').load('/templates.html');
});

Leave a Comment