Grabs the text from the 'data-tooltip' attribute and adds a mouseover and mouseout to show/hide the tooltip above the element requesting it.
IE9+ tested
An example is here: http://dev.whitecoatdesign.com/gitlab/a-simple-tooltip-class-pure-js/
OOP JavaScript & CSS tooltip
Grabs the text from the 'data-tooltip' attribute and adds a mouseover and mouseout to show/hide the tooltip above the element requesting it.
IE9+ tested
An example is here: http://dev.whitecoatdesign.com/gitlab/a-simple-tooltip-class-pure-js/
OOP JavaScript & CSS tooltip
MIT License