xxxxxxxxxx
<div class="form-outline">
<i class="fas fa-exclamation-circle trailing" style='cursor: pointer' onclick='alert("test");'></i>
<input type="text" id="form1" class="form-control form-icon-trailing" />
<label class="form-label" for="form1">Example label</label>
</div>