This is probably going to be the last entry posted before I go through a hectic phase as a mom to a newborn and a toddler.
I mentioned in one of my previous entries that it would be fun if there is a tooltip displayed following the click on a clipboard button that lets us copy text.
Please note though that I have no intention of using it as a replacement to my initial setting of showing the tooltips. The slightly-hacked-and-adopted codes I provided below just serves as an experiment for this particular purpose using clipboardjs, bootstrap tooltip component and jquery.
It displays a tooltip saying, “Copy to clipboard” whenever the mouse pointer is hovered on the clipboard button and then when the button is clicked, a tooltip with “Copied!” message appears provided there is no error occurrs.