i tried to load a page inside a div tag using a script,the page is a login page,when i logged in i need to open the corresponding output page inside the same div,i dont have any idea how to proceed further because it is two different pages which should opened one after the other
<script>
$(document).ready(function() {
$(".link1").click(function(event){
event.preventDefault();
var url =$(this).attr("href");
$('#clear').load(url);
});
});
</script>
the above script will load the login page inside the div tag
<a class="link1" href="display.jsp">link to open the login page</a>
the corresponding page after the login contains table which should be displayed in the same div.