I would like to know the number of elements (in this case option
) has my select
<select class="form-control" required>
<option *ngFor="let numberDoor of car.doors" type="text">{{numberDoor .number}}</option>
</select>
That is the select but I would like to check first if it has more than an element, or less (0 or 1) doors
I guess the easiest way is using Jquery
or Javascript