Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//bring in a dib with an id of part1 from another page:
$('#newArticle').load('inc/anotherPage.html #part1');
//simple ajax load of content (ie no post/get) from an external file
$('a[href="writeNew"]').click(function(e){ e.preventDefault(); $('#newArticle').load('inc/userWrite.php');});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment