One problem is that the link is executing normally. An href of "" means reload the page. To stop that:
Code:
$(document).on("click",".item", function(e) {
var $deel = $(this).text();
if ( $deel == "Statuten"){
$('#uitkomst').load('statuten.php');
e.preventDefault();
}
});
which will prevent the link from executing only when loading the external page. If you want all .item links to not fire normally, do it like so:
Code:
$(document).on("click",".item", function(e) {
var $deel = $(this).text();
if ( $deel == "Statuten"){
$('#uitkomst').load('statuten.php');
}
e.preventDefault();
});
There could still be other problems.
Bookmarks