I want to be able to set the value of a checkbox when the text “Click Me” is clicked elsewhere in my design.
That checkbox controls the visibility of some other text “Some text”. This works okay in that when I check or uncheck the checkbox, this text appears and disappears.
The problem is…
When the text “Click Me” is clicked, the checkbox is selected but the text “Some text” does not become visible.
Here is my checkbox:
<input id="cbox" class="input_checkbox_search" type="checkbox">
<label class="label_checkbox_search" for="cbox">My Checkbox</label>
Here is the text made visible when the checkbox is selected:
<p dmx-show="cbox.checked">Some text</p>
And here is the on-click text to select the checkbox:
<p dmx-on:click="cbox.select()">Click Me</p>
Am I doing something wrong here, or is this a bug in Wappler?
Community Page
Last updated:
Last updated: