It is jQuery plugin which gives you a customizable confirm dialogue with support for changing confirmation message and many more. For proper understanding about the confirmPopup, please see Demo Here
- End-User is inserting form data into database and you want your End-User to show confirmation before
- End-User is deleting record and you want your End-User to show confirmation before
- Include jQuery lib
- Download or Copy ConfirmPopup
- Include after jQuery lib
- Now you are ready to Call ConfirmPopup on you selector For Example:
$('#btnSaveData').confirmPopup();
- You can change it according to you requirments.
- You can also download here a demo file and run it into you browser.
- ConfirmPopup's Default settings are:
$('#btnSaveData').confirmPopup({
message: 'Are you sure you want to save this information?',
positiveBtnText:'Yes',
negativeBtnText: 'No',
confirmPopupCallOn: 'click',
cpSubContainerWidth: 500,
cpSubContainerHeight: 100,
applyDefaultBtnStyle: true,
decisionBtnsCss: 'btn-confirm-popup',
decisionBtnsBgColor: '3498db', //change bg color of decision-Btns if you are using default btn-class
decisionBtnsBgGradiantColor: '2980b9', //change bg color of decision-Btns if you are using default btn-class
decisionBtnsHoverBgColor: '3498db', //change bg color of decision-Btns if you are using default btn-class
decisionBtnsFontColor: 'ffffff', //change bg color of decision-Btns if you are using default btn-class
beforeStart: function() {
void(0);
},
onPositiveDecision: function() {
void(0);
},
onNegativeDecision: function() {
void(0);
},
});