xxxxxxxxxx
1
<div class="col-xl-3 col-lg-6 col-md-12 my-2">
2
<div class="input-group shadow-lg form-outline datepicker-with-limits" data-mdb-toggle-button="false" data-mdb-format="yyyy-mm-dd">
3
<span class="input-group-text py-4 bg-primary text-white">Start date:</span>
4
<input type="text" class="form-control" id="start-datepicker" name="start-year" data-mdb-toggle="datepicker">
5
<label for="start-datepicker" class="form-label">Select a start date</label>
6
</div>
7
</div>
8
<div class="col-xl-3 col-lg-6 col-md-12 my-2">
9
<div class="input-group shadow-lg form-outline datepicker-with-limits" data-mdb-toggle-button="false" data-mdb-format="yyyy-mm-dd">
10
<span class="input-group-text py-4 bg-primary text-white">End date:</span>
11
<input type="text" class="form-control" id="end-datepicker" name="end-year" data-mdb-toggle="datepicker">
12
<label for="end-datepicker" class="form-label">Select a end date</label>
13
</div>
14
</div>
1
1
xxxxxxxxxx
1
const myStartDatepicker = new mdb.Datepicker(document.getElementById('start-datepicker').parentNode)
2
const myEndDatepicker = new mdb.Datepicker(document.getElementById('end-datepicker').parentNode)
Console errors: 0