I'm having an issue with the positioning of my dialog box - it always appears in the upper left corner when I want it to be centered in the middle. Can anyone provide guidance on how to achieve this?
Below is my script code:
$(function() {
$("#confirmdelete").on("click", function(e) {
var link = this;
e.preventDefault();
$("<div>Should the customer account be deleted?</div>").dialog({
buttons: {
"Yes, please delete": function() {
window.location = link.href;
},
"No": function() {
$(this).dialog("close");
}
}
});
});
});