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.
To use default settings just set confirm and cancel properties
$('#btn').click(function(){
new Confirm({
confirm:function (){
//doSomthing
},
cancel:function (){
//doSomthing
}
});
});
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
}
});
});
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
}
});
});