このサンプルは、jQuery UIのdialog()プラグインを利用して
問い合わせのダイアログを表示します。
ダイアログには[OK]と[Cancel]のボタンが表示されます。
$('#dialog').dialog({
autoOpen: false, // hide dialog
bgiframe: true, // for IE6
resizable: false,
height: 140,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
},
buttons: {
OK: function() {
$(this).dialog('close');
},
Cancel: function() {
$(this).dialog('close');
}
}
});