Tell me, there is such a ajax
code:
<script> $(function () { $("a[rel='footer']").click(function (e) { pageurl = $(this).attr('href'); $.ajax({ url: pageurl + '?rel=footer', success: function (data) { $('.container').html(data); } }); return false; }); }); </script>
How to make the url change to a page that loads? It is necessary that when you click on the link of such a sample on the page so the .container
block was cleared, and then the information was loaded into it with ajax, with this changing the url. Help, please remake. I suffer a lot with this!