Confirmation Dialog on Action Link Button

I have several action links that are created as buttons on a detail view. I would like to create a simple “Are you sure?” dialog box when clicked. I have found this code from a previous user, but it looks like this is for a column on a table. I don’t know JS - how can I get this to point to the individual buttons -(scene_293>view_496>item_9-12)

(document).on(‘knack-view-render.view_XXX’, function(event, view, record) {

$(‘.col-15 a span’).each(function(){
$(this).on(‘click’, function (event) {
if (confirm(‘Are You Sure?’)){
return true;
} else {