Dave's Brain

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 }); }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.