I have a HTML page which having 1 div.
<div id="secondPage"></div>
and having
<script>
$(document).ready(function(){
$("secondPage").load("mySecondHtmlPage.html")
})
</script>
This mySecondHtmlPage.hmtl is loading but I want to have another document ready function in that second html page, which is not firing.
When I have a jQuery reference in that page(second html) too documentReady function is getting fired but it is not loading properly inside the div.
Second html page:
<div>
My Content goes here
</div>
<script>
$(document).ready(function(){
alert(''); //Not firing
})
</script>
When I have a jQuery ref over top that alert is firing but it is not getting loaded in 1st html page.