Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JulaineScott
Created May 23, 2019 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulaineScott/1c0fdbe9dd9476fde13fe5d0ace73c36 to your computer and use it in GitHub Desktop.
Save JulaineScott/1c0fdbe9dd9476fde13fe5d0ace73c36 to your computer and use it in GitHub Desktop.
//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