I've created a basic jsFiddle to give an example of what i'm working on. (I'm using Wordpress & Bootstrap.)
My problem:
Each menu-item has a href which refers to a page in my Wordpress back-end. When you click on a menu-item, a new page is loaded and the jQuery function is ignored. So I used preventDefault to ignore the href. Now there's no new content loaded out of my back-end when I click on a different menu-item because the preventDefault has disabled the original href.
Is there any way to fix this? So if you click on menu-item, the div #content slides to the right containing the actual content a that page.
JS
$("#menu-hoofdnavigatie li a").click(function (event) {
    event.preventDefault();
    var effect = 'slide',                   // Set the effect type
        options = { direction: 'left' },    // Set the options for the effect type chosen
        duration = 700;                     // Set the duration
    $('#content').toggle(effect, options, duration);
});
HTML
<section id="content" class="col-lg-5 height-inherit no-padding">
    <div class="content-inner">
        <a class="closure pull-right">X</a>
        <h1><span>_ </span><?php the_title(); ?></h1>
        <article>
            <?php the_content(); ?>
        </article>
        <div class="border"></div>
        <a class="see-more" href="">Bekijk mijn realisaties <i class="icon-long-arrow-right"></i></a>
    </div>
</section>
 
    