xxxxxxxxxx
1
<div class="form-outline">
2
<input type="text" id="basic-example" class="form-control" data-mdb-input-mask="99-999-99" data-mdb-mask-placeholder="true" value="22"/>
3
<label class="form-label" for="basic-example">Basic example</label>
4
</div>
5
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
1
1
xxxxxxxxxx
1
$('#basic-example').val('22').trigger('input');
2
$('#basic-example').focus();
Console errors: 0