I have a side menu with several links, I'm using ajax so when someone clicks on one of the links the central content of the page is modified. How would you do this operation ??
I'm currently using this code:
<script>
$('li:contains(Registro Local)').click(function(event){
$('.active').removeClass('active');
$('li:contains(Registro Local)').addClass('active');
event.preventDefault();
$('.content_wrap').load('link-da-pagina');
});
</script>
This causes the page to load but does not change the url.