Here is my HTML structure:
<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 am trying to retrieve the value entered in the text box with ID "mark". Each time a button is clicked, the ID changes to series2, series3, and so on.
Currently, in my TypeScript file, I am fetching the value like this:
var val = (<HTMLInputElement>document.getElementById(selection)).value
However, this does not give me the value for the respective series ID. Can someone please provide guidance on how to retrieve the mark value based on the ID (series1, series2)...