Tiny & Customizable Confirmation Dialog

A jQuery confirmation dialog plugin that allows you to present a one-off confirm dialog box on any screen and gives users an opportunity to make a decision.

Simple confirmation

To use default settings just set confirm and cancel properties

        $('#btn').click(function(){
          new Confirm({
            confirm:function (){
               //doSomthing
            },
            cancel:function (){
               //doSomthing
            }
          });
        });
    

Custome confirmation dialog

To customise settings, set any of the properties you want.

        $('#btn').click(function(){
          new Confirm({
            theme:'dark',
            confirmBtn:'yes',
            cancelBtn:'no',
            confirm:function (){
               //doSomthing
            },
            cancel:function (){
               //doSomthing
            }
          });
        });
    

Right to Left

To change the direction to rtl for Farsi and Arabic languages set direction property value to 'drtl'

        $('#btn').click(function(){
          new Confirm({
           direction:'drtl',
           confirmBtn:'بله',
           cancelBtn: 'خیر',
           title:'تایید',
           message:'آیا از ادامه کار مطئن هستید؟',
            confirm:function (){
               //doSomthing
            },
            cancel:function (){
               //doSomthing
            }
          });
        });