-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathforms-custom.html
More file actions
32 lines (25 loc) · 1.04 KB
/
forms-custom.html
File metadata and controls
32 lines (25 loc) · 1.04 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap Hcode</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style2.css">
</head>
<body>
<div class="container">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck1">
<label class="custom-control-label" for="customCheck1">Marque o checkbox</label>
</div>
<button class="btn btn-primary" id="btn-1">Indeterminado</button>
</div>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script>
$(() => $('#btn-1').on('click', e => $('#customCheck1').prop('indeterminate', true)));
</script>
</body>
</html>