Hi,
In my application, I have 2 pages.
first page contains a an anchor and a div tag.
on the click event of anchor tag,second page is display in div tag.
it is working fine.
<a href="#" onclick="jQuery('#display').load('HTMLPage.htm');">Click to view</a>
<div id="display" style='position:relative;top:168px;left:250px;width:250px;height:400px;border:10px solid;border-color:blue;' >
second page contains a button on the top right.
my problem is on the click event of button i want to hide display tag.
i wrote the code in second page like this
$(document).ready(function () {
$('#img2').click(function () {
$("#display").hide();
});
});
img2 is id of btton in second page.
it is working only first time.
means if i press anchor tag it will dispay the page.when i click button it will hide.
but again press anchor tag page will not open.
how to solve this
Regards
K L BAIJU