Add jQuery Simple Draggable Dialog & Modal Plugin

jQuery Simple Dialog is a simple and lightweight jQuery plugin for creating customizable and draggable popups for alerts, dialogs, and modal windows.

draggable dialog javascript, html draggable dialog, draggable popup jquery, dialog material ui, material ui popup, material ui confirmation dialog

How to make use of it:

1. Load the jquery-simple-dialog.js JavaScript library after jQuery library.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/jquery-simple-dialog.js"></script>

2. Create a fundamental dialog and a set off button on the web page.

<div id="example" class="dialog">
  <div id="example_title">Dialog Title</div>
  <p>Dialog Content</p>
  <button type="button" id="example_ok">OK</button>
  <button type="button" id="example_cancel">Cancel</button>

3. Hide the dialog on web page load and apply further types as follows:

.dialog {
  display: none;
  /* optional CSS styles */
  width: 400px;
  padding: 10px;

4. Initialize the dialog.

  opener: '#example_opener',
  closer: '#example_ok, #example_cancel'

5. Automatically set the give attention to a selected component inside the dialog.

  opener: '#example_opener',
  closer: '#example_ok, #example_cancel',
  focus: '#basic_ok'

6. Enable the draggable performance on the dialog.

  opener: '#example_opener',
  closer: '#example_ok, #example_cancel',
  dragger: '#example_title'

7. Enable the modal mode.

  opener: '#example_opener',
  closer: '#example_ok, #example_cancel',
  modal: true

8. Available occasion handlers.

  opener: '#example_opener',
  closer: '#example_ok, #example_cancel'
}).on('dialog:open', function(e, $elem) {
  console.log('opened by ' + $elem.attr('id'));
}).on('dialog:close', function(e, $elem) {
  console.log('closed by ' + $elem.attr('id'));

Tiny Draggable Dialog & Modal Plugin, jquery simple dialog Github


See Demo And Download

Official Website(kanety): Click Here

This superior jQuery/javascript plugin is developed by kanety. For extra Advanced Usage, please go to the official website.

Related Posts


Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…


Bootstrap 5 Treeview Dynamically Collapsible | bs5treeview

Bootstrap 5 Tree View is a very simple plug-in for creating a basic and elegant Treeview using BS5. For use with Bootstrap 5, the attributes have been…


Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…


[Steps] A Simple, Lightweight jQuery Step Wizard Plugin

jQuery steps wizard is a simple and lightweight plugin. The step is a jQuery plugin that turns any grouped elements into a step-by-step wizard with navigation buttons…


Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…


Create a Beautiful Mobile App-Like Sliding Menu | mmenu.js

Mmenu is the best JavaScript plugin for both on and off-canvas(hamburger menu) menus with sliding submenus for your website and web app. It is very customizable with…

Leave a Reply

Your email address will not be published. Required fields are marked *