Skip to content
Discussion options

You must be logged in to vote

It's also possible without using javascript.

  • Use a for attribute for the label pointing to the id of the input element
  • add the class hidden to the input field (this adds the pointer cursor, clicking on the label will also work without that)
<div class="ui checkbox">
  <input id="cb1" type="radio" value="Pessoa Física" name="pessoa" checked="checked" class="hidden" />
  <label for="cb1">Pessoa Física</label>
</div>
<div class="ui checkbox">
  <input id="cb2" type="radio" value="Pessoa a Jurídica" name="pessoa" checked="checked" class="hidden" />
  <label for="cb2">Pessoa a Jurídica</label>
</div>

See https://jsfiddle.net/lubber/ysvgz0rt/1/

Replies: 3 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 lubber-de
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1515 on October 06, 2020 21:24.