Skip to content

Instantly share code, notes, and snippets.

@JellyWX
Created October 5, 2016 12:01
Show Gist options
  • Save JellyWX/829e32ef3c043eb661d86deae3747235 to your computer and use it in GitHub Desktop.
Save JellyWX/829e32ef3c043eb661d86deae3747235 to your computer and use it in GitHub Desktop.
/*A script using jQuery which creates a function which can be used to fill out a div with another html file*/
var root = 'enter the root of your html files here. leave empty for none.'
function fillText(a){
$('#text').load(root + a + '.html');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment