Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
374 B
5
Indexable
Never
  <label class="btn btn-primary">
    <input type="radio" name="gender" class="gender" value="mand"> Mand
  </label>
  <label class="btn btn-danger">
    <input type="radio" name="gender" class="gender" value="kvinde"> Kvinde
  </label>


<script>
$( ".gender" ).change(function() {
  $( "#choiceGender" ).text( "Du mener at du er en " ).$(this).attr('value');
});
</script>