jquery-confirm icon indicating copy to clipboard operation
jquery-confirm copied to clipboard

Want to loop-through content from Link

Open Mikki29 opened this issue 5 years ago • 0 comments

Hi, I use Jquery Confirm 3.3.4 and I want to use the $.fn.confirm way as descriped.

                    <p>
                        <a class="example2-1-1 btn btn-primary"
                           data-title="Goto twitter?"
                           href="http://twitter.com/craftpip">Goto twitter
                        </a>
                    </p>
                    <script>
                        $('.example2-1-1').confirm({
                            content: "This will take you to my twitter <br> You can access the clicked element by <code>this.$target</code>",
                        });
                    </script>

But I would like to put some content in the a-attribute to give it to the confirm-dialog. For example

<a class="example2-1-1" href="http://twitter.com/craftpip" myContent="some new content">Goto twitter</a>

Is there a way to do that?

Mikki29 avatar Dec 11 '19 17:12 Mikki29