When entering a number to a textbox I want you to send me an alert, but I have not been able to solve it, being equal to or greater than 30 you should send the alert
in html is my textbox code
<input
type="number"
min="0"
id="obraAv"
[value]="obraAv"
(input)="Alert()"
class="form-control"
placeholder="Avance de la obra"
required="required"/>
This is the message I want to show
<div *ngIf="showAlert" class="col-md-3 mb-2">
<div class="alert alert-danger" ng-value="obraAv">
<strong>Su obra civil no es asegurable</strong>
</div>
</div>
and this is the code in ts
showAlert=false;
obraAv;
Alert()
{
if(this.obraAv==30)
{
this.showAlert=true;
}
else{
this.showAlert=false;
}
}
I would greatly appreciate your support