I would like to disable my submit button as long as values are not selected thd The issues is the number of dropdowns is dynamically created from the database so I might have 2 lists month and year
or may have three month,year,company etc..
component.html
<form #myForm="ngForm" (ngSubmit)="submit(myForm.value)">
<div class="container" style="width:100%; border:0px double ">
<div class="row left" *ngFor='let control of tabControls; let i = index' style="padding-bottom:3px">
<div class="col-lg-2 text-left" style="border:0px dotted">
{{control.DropDownTitle}}:
</div>
<div class="col-lg-pull-3 text-left">
<select name="{{control.DropDownTitle}}" [(ngModel)]="selected[i]" style="width:80%">
<option value="" selected>Select</option>
<option *ngFor='let controlList of control.DropdownValues' [ngValue]="controlList.Value">
{{controlList.Value}}
</option>
</select>
<input #myInput name="file" type="file" (input)="oninput($event)" style="width:80%" [disabled]='showDeleteButton' />
<button type="submit" class="btn btn-primary">Submit Values</button>
</form>
