jquery-confirm
jquery-confirm copied to clipboard
Want to loop-through content from Link
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?