Skip to content
Advertisement

Link within a bootstrap list-group-item, but popup confirmation before clicking link

I have a ‘bootstrap list group item’. I am trying to create a link inside the link area. The code below works:

JavaScript

Now what I would like to do is to add a confirmation to this so the user doesn’t delete by mistake.

JavaScript

How would I combine these to? When I try they will not execute. I have tried.

JavaScript

It doesn’t work… And I also need a way to pass on the variable ‘x’ to the script since it will differ..

Thanks a lot for help.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement