This plugin displays a confirmation message in place before doing an action. It does not require adding any extra code apart from a call to the plugin itself. One call to $(element).confirm() will do the magic. Also, this plugin doesn’t require you to provide a callback function; it figures it out on its own.
For examples and docs please visit: http://nadiana.com/jquery-confirm-plugin