Erstellen Sie dynamisch JQuery -Modal -DialogJquery

JQuery-Programmierung
Anonymous
 Erstellen Sie dynamisch JQuery -Modal -Dialog

Post by Anonymous »

Ich möchte beim Ausführen meiner Seite ein JQuery -Dialogdialog dynamisch erstellen, aber ich kann es nicht erhalten Modal < /strong>.

Code: Select all

        
function show() {
var dialog = $('').dialog();
dialog.dialog({
modal: true,
autoOpen: true,
title: 'Test',
buttons: [
{
text: 'Ok',
click: function() {
$('#res').empty().append('Open');
$('#msg_dialog').remove();
}
},
{
text: 'Cancel',
click: function() {
$('#res').empty().append('Close');
$('#msg_dialog').remove();
}
}
]
});
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post