Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How to enable/disable title (tool tip) content with checkbox?

1426808334
Dan W.
Sheet Author
Hi, I'd like to be able to turn on specific tooltips (say, for beginners) with a checkbox. Is there a way to get such control over the display of the content shown using the title attribute ?
1426815387

Edited 1426815435
Lithl
Pro
Sheet Author
API Scripter
The only way I can think of would be to swap out the element using the title: <input type="checkbox" class="sheet-tooltip-toggle" value="1" name="attr_use_tooltips" /> Show tooltips . . . <input type="text" class="sheet-tooltip-on" name="attr_example" title="This is an example tooltip" /> <input type="text" class="sheet-tolltip-off" name="attr_example" /> .sheet-tooltip-toggle:checked ~ * .sheet-tooltip-off, .sheet-tooltip-toggle:not(:checked) ~ * .sheet-tooltip-on { display: none; }