I'm currently using .append() to add a div to page. However, I was hoping to be able to be a bit more streamlined and load the div in from completely separate HTML file rather that hold div and content within the JS file.
Here's what I have currently:
jQuery:
$('.addNewContent').click(function() {
$( '#content' ).append( "new content" );
return false;
});
I've seen there's already been a question that's related, however no inclination as to how it's implemented - Load HTML File Contents to Div [without the use of iframes]
I was wondering if anybody had any ideas? Any help would be greatly appreciated!