The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to clear content div and reappear with javascript

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #168086

    I am using jQuery CustomBox modal. I have it all working fine but I want the div behind it (BUT NOT THE BACKGROUND IMAGE) to disappear when modal is clicked. I have managed that, but not too sure on the code to make it reappear again after the modal is closed. At the moment I have to refresh the page in order for it to come back.

    Here is the code I am using so far:

    I have not included the modal due to the amount of extra code, however, here is a link to the actual page:

    to make the modal appear just click on the ‘joey’ link.

    At the moment it is controlled by jQuery. The call which is placed in the footer is:

    $(function () {
        $('#fadein').on('click', function () {
        $.fn.custombox( this {
        effect: 'fadein'
        return false;

    This fades the modal in and out. Would I just need to place some code here for the #wholePageContainer div to re-appear??

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.