I am using jquery into angular to multiple select value from dropdown but the problem is when I select and try to console the function add "1" as a first number before the selected array
This is the HTML page:
<select class="ui fluid multiple selection dropdown" id="multi-select">
<option *ngFor="let objectif of listObjectif" [value]="objectif.id_obj">{{objectif.des_obj}}
</option>
</select>
This is my code into the controller:
this.selectedObjectif = <[any]>[];
this.selectedObjectif = $('select#multi-select').dropdown('get value');
When I try to call the function, this is what I get:
(2) ["1", Array(4)]
0:"1"
1:(4) ["1", "8", "3", "16"]
length:2
The problem is I don't want to get the first value "1", I just want to get the array directly.