I'm not entirely sure why it isn't working, but I have a JQuery.load
with the below code:
var modcode = $(this).attr('data-modcode');
var link = $(this).attr('href');
$('#subUnitWrapper').append('<div id="h' + modcode + '"></div>');
$('#h' + modcode).load(link + ' #divMiddle h4', function(data){
debugger;
$('#h' + modcode).append(data);
});
I've run it through a debugger
statement, and it's getting the link fine, same goes for the element append. But when I put a debugger
statement inside the load function, it didn't even hit it. The link is relative, but I don't see how that could affect it.