Programming Tips - jQueryUI: Easy way to use jQueryUI as an alert() box

Date: 2016mar29 Date: 2025jul11 Library: jQueryUI Language: javaScript Keywords: jQuery UI Q. jQueryUI: Easy way to use jQueryUI as an alert() box A. Make a div and call dialog() on it:
function jalert(title, msg) { $('<div>' + msg + '</div>').dialog({ title: title, modal: true }); }