Bjax demo page

Load a part of page.

JavaScript (add to page HEAD):

$('data-bjax').bjax();

Example HTML:

<div id="content">
  <p>
    Content 2.
  </p>
  <a href="content1.html" data-target="#content" data-el="#content" data-bjax>Click To Load Content Here</a>
</div>

Example target HTML:

<div id="content">
  <p>
    Content 1.
  </p>
  <a href="content2.html" data-target="#content" data-el="#content" data-bjax>Click To Load Content Here</a>
</div>

DEMO

Free Web Hosting