In qTip1 you could easily style every single tooltip at runtime, but since qTip2 you can ‘only’ pass a CSS class to apply to the tooltip.
So ok this is cleaner, but is there still a way I can change the style (or at least the color) of a tooltip at runtime ?
I guess adding a <style> block in my rendered view defining a class and then using that class could work but I’d prefer a pure javascript way of doing it.
What do you think ?
You can change easily the class (and with this every style) at runtime with:
SEE my DEMO (It changes the tooltip style at runtime)
RESULT
HTML
JavaScript
You can read more in the Documentation