HTML
xxxxxxxxxx
1
<br>
2
<div class="form-outline mb-4">
3
<input
4
type="date"
5
class="form-control"
6
id="date1"
7
/>
8
<label for="date1" class="form-label">Dato 1</label>
9
</div>
10
<div class="form-outline mb-4">
11
<input
12
type="date"
13
class="form-control"
14
id="date2"
15
value="2021-03-18"
16
/>
17
<label for="date1" class="form-label">Dato 2</label>
18
</div>
19
CSS
1
1
JS
xxxxxxxxxx
1
document.querySelectorAll('.form-outline').forEach((formOutline) => {
2
new mdb.Input(formOutline).update();
3
});
4
Console errors: 0