How can I retrieve the previous value of a dropdown before selection using the OnChange event?
<select class="form-control selectpicker selector" name="selectedQuestion1" [ngModel]="selectedQuestion1" (Onchange)="filterSecurityQuestions($event.target.value,0)">
<option [value]="0" disabled selected>Select Secuirty Question1</option>
<option *ngFor="let securityQuestion of securityQuestions[0]" [value]="securityQuestion.SecurityQuestionID" >
{{securityQuestion.Question}}
</option>
</select> <br />
<div>
<input type="text" class="form-control" id="first_name" name="securityAnswer1" placeholder="Your first security answer">
</div>
filterSecurityQuestions(questionNo: number, securityQtnDropdownNo: number) {
// Need to access previous value of dropdown here.
}