jQuery Confirm

A tiny bit of jQuery that adds a question mark to the .val() or .text() of the clicked element and confirms it.

Default usage

All you need to do is add a class of js-confirm to the element.

Leave this page Undo change

Custom messages

Add a data-confirm-text attribute to give a custom query.

Leave this page Undo change