JQUERY Dialog Box
- by David Bonnici
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