Browse - Programming Tips - Is there an easy way to use jQueryUI as an alert() box?

Date: 2016mar29
Library: jQueryUI
Language: javaScript

Q.  Is there an 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 }); }