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

Checkbox toggles div hidden/visible

1495281653
Axel
Pro
Sheet Author
I would like some help with toggling a div visible or hidden based on a checkbox input, similar to this:&nbsp; <a href="https://codepen.io/morganfeeney/pen/KiBty" rel="nofollow">https://codepen.io/morganfeeney/pen/KiBty</a> I can't get this to work on a character sheet for some reason. Any help is appreciated.
I don't think that code will work on Roll20, I believe as we can't use the "id" element. Instead, refer to the Wiki: <a href="https://wiki.roll20.net/CSS_Wizardry#Hide_Areas" rel="nofollow">https://wiki.roll20.net/CSS_Wizardry#Hide_Areas</a> That link will take you to the section on hiding areas on the CSS Wizardry page. Below that is a section on swapping areas, which may also be relevant to you.
1495295101
Axel
Pro
Sheet Author
Yes, that's exactly what I'm looking for! My bad for not reading through the wiki. Thanks!