Forum Moderators: open
(home)
<li><a href="#dialog" name="modal">Case Studies</a></li>
...
<div id="boxes">
<div id="dialog" class="window">
</div>
</div>
(other page)
<div id="sub-content">
Content loaded from the Case Studies page.
<!-- close button is defined as close class -->
<a href="#" class="close">X Close</a>
</div>
This allows you to click on the entire container to close the window:
$('#dialog').click(function () {
$(this).hide();
$('.window').hide();
});
But I'm trying to get X Close to actually close .window:
$('.close').click(function () {
$(this).hide();
$hide('.window');
});