Using jQuery to provide an inline confirmation on buttons

I was working on a side project and wanted the user to confirm when they wanted to delete something. The normal window.confirm method was just too primitive so I decided to write something I liked a little more.

Click the delete button below to see it in action. Click the JavaScript tab below to see how it works.

This was built for use with the amazing Bootstrap CSS framework. Only the classes that are added/removed are dependent on Bootstrap, so adjust to your needs.

This entry was posted in Development and tagged , , , , . Bookmark the permalink.

4 Responses to Using jQuery to provide an inline confirmation on buttons

  1. stef says:

    hi!

    very well solution!

    But I don’t understud how can apply a callback after confirmed??

  2. stef says:

    I added some improvements and published all in one repository, if you want you can contribute!

    bootstrap-confirm-button

    bye!

Comments are closed.