jQuery confirmOn - adding an easy confirmation pop-up before the handler is called

jQuery confirmOn shows a confirmation box when the provided events are triggered. It works exactly like jQuery's .on() but with a confirmation step between the event and the handler. When the user answers the confirmation dialog, the handler is called with the answer as a parameter, so you can decide what to do next. The user can press the escape key which closes the dialog and doesn't call the yes or no handlers.

 

w10schools
2014-04-29 15:22:45
Comments
Leave a Comment

Please login to continue.