I'm new to Jquery and I'm trying to use a div container to load a URL, however, I want to give a user an option to close it with an X sign on the top right corner like in Amazon.com. What's the best way to accomplish this?
Here's what I have and seems clumsy to figure out where the top right corner is and place the image X:
$("#url_link_details").click(function() {
$("#details").load("tooltip_address.htm", function() {
$(this).addClass("openwindow").show();
$(".img_close").addClass("img_close_show").show();
})
});
Any help is appreciated.