I am new to jQuery, I want to add popover on button success of copy of text in div. For copy I am using clipboard.js and my code is mentioned below
Here is my code
I am new to jQuery, I want to add popover on button success of copy of text in div. For copy I am using clipboard.js and my code is mentioned below
Here is my code
I think you just need to add this :
showTooltip(e.trigger, 'Copied!');
Hope this helps !
Update
Code above is from clipboard.js. You don't need to load extra libraries, you can pop everything you want on success. For example you can add :
clipboard.on('success', function(e) {
console.log(e);
alert('Copied!');
});
If you use Bootstrap or another framework you can do easily what you want !