Skip to content

Correct use of radio buttons? #278

Answered by JoernT
rkottmann asked this question in Q&A
Discussion options

You must be logged in to vote

@rkottmann i prepared a demo for the handling of radiobuttons. It's a bit simpler than your approach:

          <fx-control ref="radio">
            <label>Choose a radio</label>
            <fx-items>
              <input type="radio" id="first" name="radio-input" value="first" />
              <label for="first">first radio</label>

              <input type="radio" id="second" name="radio-input" value="second"/>
              <label for="second">second radio</label>

              <input type="radio" id="third" name="radio-input" value="third" />
              <label for="third">third radio</label>
            </fx-items>
            <fx-message event="value-changed">changed to {.}</fx…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JoernT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants