I'm trying to build a page with various buttons that copy text to the clipboard and then feedback to the user the value has been copied. Value is not from user input and the value for each button is static.
This is the closest example I've found to what I want (Tooltips + Highlight Animation With Clipboard.js Click) but I'm using the latest version of Bootstrap and I've found if I change the version of Bootstrap CSS or JS, or Clipboard then the example stops working.
My Javascript is knowledge is very ropey so if anyone can point out why it doesn't work with latest versions that would be great.
I am not a javascript/bootstrap expert but I will try to share my little experience.I think the issue may lie in jQuery dependency for Bootstrap 3 and 4 ,since the script on the reference page related with tooltip is written in jQuery and Bootstrap 5 and above are now using Vanilla Javascript ,the script won't run until you add jQuery dependency to the main project ,you can see a snippet of my project where both jQuery ,ClipboardJS and Bootstrap 5.2 work fine + I have added some CSS and animations too,I have not found any conflicts in this way ,hope this can be helpful .Please check here too Bootstrap 5.2 with jQuery