These dialogs should be able to use the jQuery UI dialog syntax verbatim without requiring the jQuery UI library.
Modal dialogs should capture focus and retain it until closed. This requires:
Any input device should be able to close the dialog. This example uses focusable (tabbable) buttons as well as the ESC key. Focus should then return to the previously active element.
Accordingly these dialogs should work well with pointer devices (mouse, touch screen, etc.) or keyboard tabbing.
jQuery's backward compatibility shims enable this demo to run on Internet Explorer 11.
You won't regret it.