Old iOS Style Dialog Box Plugin For jQuery

File Size: 50.5 KB
Views Total: 1087
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Old iOS Style Dialog Box Plugin For jQuery

A jQuery plugin that allows to create custom confirm/alert dialog boxes on your website / web app, as you seen on iOS 5/6.

How to use it:

1. Load jQuery library and the jQuery iOS Dialog Box's CSS & JavaScript in your project.

<link href="iOSdialogBox.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="iOSdialogBox.js"></script>

2. Show an alert dialog box.

$('#id').click(function(){
  $(this).iOSdialogBoxAlert({
    'title':'' , 
    'message':'' , 
    'button':''
  }, callback_function 
});

3. Show a confirm dialog box.

$('#id').click(function(){
  $(this).iOSdialogBoxConfirm({
    'title':'' , 
    'message':'' , 
    'button1':'' , 
    'button2':''
  }, callback_function 
});

This awesome jQuery plugin is developed by DavidGarciaCat. For more Advanced Usages, please check the demo page or visit the official website.