add clear button to text input bootstrap 4 code example
Example: boostrap 4 clear input
<div class="input-group">
<input type="text" class="form-control" placeholder="Search...">
<button class="btn bg-transparent" style="margin-left: -40px; z-index: 100;">
<i class="fa fa-times"></i>
</button>
</div>