i have this code
$(document).ready(function () {
$('a').click(function(e) {
e.preventDefault();
url = $(this).attr('href');
$("body").load(href);
});
});
But it does not work. Nothing loads. The only thing that works is e.preventdefault()
Am I doing something wrong?
aelements already do this properly.hrefpoint? It's an undefined variable. :)