-
Notifications
You must be signed in to change notification settings - Fork 90
/
form_inset_radios.html
42 lines (34 loc) · 1.66 KB
/
form_inset_radios.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<h1 class="heading-medium">
How do you want to be contacted?
</h1>
<form>
<fieldset>
<legend class="visuallyhidden">How do you want to be contacted?</legend>
<div class="form-group">
<label class="block-label" data-target="contact-by-email" for="example-contact-by-email">
<input id="example-contact-by-email" type="radio" name="radio-contact-group" value="Yes">
Email
</label>
<div class="panel panel-border-narrow js-hidden" id="contact-by-email">
<label class="form-label" for="contact-email">Email address</label>
<input class="form-control" name="contact-email" type="text" id="contact-email">
</div>
<label class="block-label" data-target="contact-by-phone" for="example-contact-by-phone">
<input id="example-contact-by-phone" type="radio" name="radio-contact-group" value="No">
Phone
</label>
<div class="panel panel-border-narrow js-hidden" id="contact-by-phone">
<label class="form-label" for="contact-phone">Phone number</label>
<input class="form-control" name="contact-phone" type="text" id="contact-phone">
</div>
<label class="block-label" data-target="contact-by-text" for="example-contact-by-text">
<input id="example-contact-by-text" type="radio" name="radio-contact-group" value="No">
Text message
</label>
<div class="panel panel-border-narrow js-hidden" id="contact-by-text">
<label class="form-label" for="contact-text-message">Mobile phone number</label>
<input class="form-control" name="contact-text-message" type="text" id="contact-text-message">
</div>
</div>
</fieldset>
</form>