Custom post type – use ajax to display sub pages

I found the solution using the load() function of jquery, simply add a click event for the clicked element and use load() to the element you want.