0

enter image description here

When I'm trying to change options in select "event doesn't load like ((ngModelChange) or (ngchnage))"

enter image description here

I tried this for change selected option, but no event loaded document.querySelectorAll("select")[1].value=2" and document.querySelectorAll("select option")[2].selected=true;

karel
  • 5,489
  • 46
  • 45
  • 50
  • Without more code its hard to say precise but it could be that the value should be changed using [ngModel]="SOME_VAR" if you add more code to the question i would be happy to investigate more – Simon Dragsbæk Dec 30 '22 at 09:41
  • Checkout this answer: https://stackoverflow.com/questions/33700266/how-can-i-get-new-selection-in-select-in-angular-2 – Simon Dragsbæk Dec 30 '22 at 09:42

0 Answers0