x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<!-- Latest compiled and minified Bootstrap CSS -->
5
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
6
7
<style>
8
body {
9
padding-top: 1em;
10
}   
11
</style> 
12
<div class="container">
13
<form action="/html/form_handler.cfm">
14
15
<fieldset class="form-group">
16
<div class="row">
17
<legend class="col-form-label col-3">Fruit</legend>
18
<div class="col-9">
19
<div class="form-check">
20
<label class="form-check-label">
21
<input class="form-check-input" type="radio" name="legendRadio" id="legendRadio1" value="1">
22
Apple
23
</label>
24
</div>
25
<div class="form-check">
26
<label class="form-check-label">
27
<input class="form-check-input" type="radio" name="legendRadio" id="legendRadio2" value="2" checked>
28
Orange
29
</label>
30
</div>
31
<div class="form-check">
32
<label class="form-check-label">
33
<input class="form-check-input" type="radio" name="legendRadio" id="legendRadio3" value="3">
34
Watermelon
35
</label>
36
</div>
37
</div>
38
</div>
39
</fieldset>
40
41
<div class="form-group row">
42
<label for="first_name" class="col-3 col-form-label">First Name</label>
43
<div class="col-9">
44
<input type="text" class="form-control" id="first_name" name="first_name">
45
</div>
46
</div>
47
<div class="form-group row">
48
<label for="last_name" class="col-3 col-form-label">Last Name</label>
49
<div class="col-9">
50
<input type="text" class="form-control" id="last_name" name="last_name">
51
</div>
52
</div>
53
54
<div class="form-group row">
55
<div class="offset-3 col-9">
56
<button type="submit" class="btn btn-primary">Submit</button>
57
</div>
58
</div>
59
60
</form>
61
</div>
62
63
<!-- jQuery library -->
64
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
65
66
<!-- Popper -->
67
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
68
69
<!-- Latest compiled and minified Bootstrap JavaScript -->
70
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
71
72
<!-- Initialize Bootstrap functionality -->
73
<script>
74
// Initialize tooltip component
75
$(function () {
76
  $('[data-toggle="tooltip"]').tooltip()
77
})
78
79
// Initialize popover component
80
$(function () {
81
  $('[data-toggle="popover"]').popover()
82
})
83
</script>