Why ?
This is a jQuery plugin that confirms an action on click of an element and executes separate js code based on the confirmation.
Can be used to confirm users actions in a pretty way without having to use browser confirm box / alert box.
Info -
- Source code - https://github.com/udayakiran/jQuery.confirmAction.js
Setup & Usage -
-
Download jquery.confirmAction.js OR jquery.confirmAction.min.js
-
Include jQuery file (1.7+) and the plugin file (or .min file) in your HTML page.
Example usage -
Say there is a link/button with id “confirm_link”, if you want to display a confirmation message to the user on clicking this link and decide weather to proceed or not -