Can i make my code shorter?
I have a code with links to different pages like this.
Javascript
Code:
<script type="text/javascript">
$(document).on("click",".item", function(e) {
var $deel = $(this).text();
if ( $deel == "Statuten"){
$('#uitkomst').load('statuten.php');
}
else if ( $deel == "Boekhouding"){
$('#uitkomst').load('boekhouding.php');
}
else if ( $deel == "Jaarrekening"){
$('#uitkomst').load('jaarrekening.php');
}
else if ( $deel == "Begroting"){
$('#uitkomst').load('begroting.php');
}
else if ( $deel == "Budget opvolgen"){
$('#uitkomst').load('budgetopvolgen.php');
}
e.preventDefault();
});
I have about 34 of those links and I wonder if there's a way to make my code shorter?