Hi ..below is the code for oldstudent.html but the div are not being populated in the student.html.
but as standalone page it works fine. So basically i would like this page rendered or completely loaded when i am loading this with ajaxLoad on the Student.html page.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Load remote content into object element</title>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("div").each(function (index) {
var idDiv = $(this).attr('id');
if (idDiv) {
alert(idDiv);
$("#" + idDiv).load(idDiv + "_v1.html");
}
});
});
</script>
</head>
<body>
<div id="wrapper">
<div>Schedule A</div>
<div id="MC_STUDENT1"></div>
<div id="MC_STUDENT2"></div>
<div id="MC_STUDENT3"></div>
<div id="MC_STUDENT4"></div>
<div id="MC_STUDENT5"></div>
</div>
</body>
</html>