I have a function in PHP that renders and return a HTML content and I need to load that result on a DIV when page load. I'm doing in this way:
<div id="myModal" class="reveal-modal" title="El Farol" data-animation="fade"> <a class="close-reveal-modal">×</a>
<script>
$(document).ready(function() {
$(this).load("http://devserver/app_dev.php/register");
});
</script>
</div>
But I get nothing, if I call http://devserver/app_dev.php/register from browser I get the HTML. What I'm doing wrong? What is the right way to load HTML content in a container on DOM complete load or page load?