Confirm на jquery без плагинов «одной строкой»
Вот одно из решений:
$('<div></div>').appendTo('body')
.html('<div><h6>Вы убеждены?</h6></div>')
.dialog({
modal: true,
title: 'Удалить всё?',
zIndex: 10000,
autoOpen: true,
width: 'auto',
resizable: false,
buttons: {
Yes: function () {
$(obj).removeAttr('onclick');
$(this).dialog("close");
},
No: function () {
$(this).dialog("close");
}
},
close: function (event, ui) {
$(this).remove();
}
});