[jQuery] load content into div
I want to load content into div when the page is loading :
here my html :
<div id="http://www.myweb.com/module1" class="module">
</div>
i tried
var loadRemoteModule = function() {
$('.module').ready(function(){
var link = $(this).attr("id");
$('#'+link).load(link);
});
};
but i get a 0x80070057 exception. Indeed, link is undefined.
how to load the content of http://www.myweb.com/module1 when the div
is ready?
Can you help me?