I'm currently writing a custom character sheet for the home brew game me and my friends are playing.
The charactes in the system are split in two main classes (mage and fighter) that use different resources for combat. i want to make it so, that only the fields for the chosen class are shown. as far as i understood it you can use css to hide elements based on the state of other inputs.
the whole thing currently looks like this:
<select name="attr_characterclass" class="sheet-characterclass">
<option name="attr_characterclass" value="fighter"Fighter</option>
<option name="attr_characterclass" value="mage">Mage</option>
<option name="attr_characterclass" value="other">Other</option> </select>
<div class="sheet-ui_fighter"> ... class specific elements </div>