xxxxxxxxxx
1
<div class="form-outline">
2
<input type="text" id="basic-example" class="form-control" data-mdb-input-mask="99-999-99" />
3
<label class="form-label" for="basic-example">Basic example</label>
4
</div>
5
1
1
xxxxxxxxxx
1
document.getElementById('basic-example').value = "22-222-22";
2
document.getElementById('basic-example').dispatchEvent(new Event('input'));
3
Console errors: 0