125
rated 0 times
[
130]
[
5]
/ answers: 1 / hits: 18800
/ 7 Years ago, tue, november 21, 2017, 12:00:00
<tr (click)=onRowClick(myDropDownList.value)>
<td>
<select #myDropDownList (click)=$event.stopPropagation() (change)=onChange($event.target.value)>
<option *ngFor=let n of numbers [value]=n>{{n}}</option>
</select>
</td>
</tr>
I was trying to get selected value from the drop down list and assign it to the onRowClick
function. But myDropDownList
always appears to be undefined
for some reason. I was wondering what might go wrong here.
More From » html