I have my html like this.
<div id="series1">
<div class="col-md-6">
<label for="Mark">Mark</label>
<input type="text" id="mark" class="shortTextbox" (blur)="signalSelected('mark')" />
</div>
</div>
I want to get the value of mark value entered in the text box. This html code repeats for me on a button click. Every time the button is clicked id changes to series2 and series3 and so on.
Currently in typescript file I am taking value like
var val = (<HTMLInputElement>document.getElementById(selection)).value
But this won't give me the value selected for the respective series id. Can you please provide how to get the mark value based on id(series1, series2)...