A tiny bit of jQuery that adds a question mark to the
.val()
or
.text()
of the clicked element and confirms it.
All you need to do is add a class of
js-confirm
to the element.
Add a
data-confirm-text
attribute to give a custom query.