JQUERY Dialog Box

Posted by David Bonnici on Stack Overflow See other posts from Stack Overflow or by David Bonnici
Published on 2008-12-14T16:34:13Z Indexed on 2010/03/24 4:53 UTC
Read the original article Hit count: 352

Filed under:
|

Hi Guys,

Im trying to do a dialog box with jquery. In this dialog box Im going to have terms and conditions. The problem is that the dialog box is only displayed for the FIRST TIME.

This is the code


JAVASCRIPT CODE:

function showTOC()
{
    $("#TOC").dialog({ 
        modal: true, 
        overlay: { 
            opacity: 0.7, 
            background: "black" 
        } 
    })
}


HTML Code (A HREF)

class="TOClink" href="javascript:showTOC();">View Terms & Conditions</>

<div>id="example" title="Terms & Conditions">1..2..    </div>


The problem I think is that when you close the dialog box the DIV is destroyed from the html code therfore it can never be displayed again on screen.

Can you please help!

Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dialogbox