jquery popup box not working fine

Posted by Klbaiju under jQuery on 9/21/2012 | Points: 10 | Views : 1318 | Status : [Member] | Replies : 1
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




Responses

Posted by: Divyaselvarathinam on: 9/21/2012 [Member] Starter | Points: 25

Up
0
Down
Can you please post your full code....


Divya

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response