I want to perform the sticky footer to a stand-for-a-long web project.
I'm required to create two top-level div and wrap up all the content inside of <body> into 'div-container', then to add 'div-footer' to the end of <body> or <html>
like
<body>
<div id='container'>
//all body
</div>
<div id='footer'>
</div>
</body>
How can i do it with jQuery? i tried but failed with the code below (coz 'container' don't know where to append),
$(document).ready(function() {
addStikyFooter();
});
function addStikyFooter() {
$("<div id='container'></div>").append($('body'));
var footerHtml = "<div id='footer'>i'm testing!/footer>";
alert($('body').html());
}