Hi,
I am trying to get a checkbox to hide/reveal specific text boxes.
for example say I have the following checkbox with three choices:
- c1
- c2
- c3
Furthermore, I have three text boxes t1, t2, and t3.
If c1 is ticked I want t1 to be revealed otherwise I want it to be hidden.
c2 and c3 will perform the same function on t2 and t3 respectively.
How would I go about monitoring the state of all the choices simultaneously in order to set/unset new tokens such that I can pass said tokens as depends attributes to reveal/hide the individual text boxes.
Thank you for your time.
↧