[jQuery] Can't get dialog box to appear twice
Hey all. I'm trying to work with a dialog box and when the page has
been refreshed, the dialog box appears fine. But if I close it out and
try to open it again, it won't open.
Here is the code I'm using.
$(function() {
$("#quickAddDisplay").dialog({
bgiframe: true,
resizable: false,
height:140,
width: 350,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
},
buttons: {
'Carton ID': function() {
/* initGrids("cartonid"); */
$(this).dialog('close')
},
'Order #': function() {
/* initGrids("orderid"); */
$(this).dialog('close')
},
}
});
});
Any ideas? I'm using the dialog.js plugin.