Naveen K K Naveen K K - 9 months ago 21
HTML Question

How do i get the value in an anchor tag?

For getting value in input tag we can use

.value like

<input type="text" #solutionInput (keyup)="0"><br>
<solutionDetail [solutionName]="solutionInput.value" > </solutionDetail>

where 'solutionInput' is

For an anchor tag, how can we get the value "CEP" as in below?

<a href="#" data-toggle="modal" data-target="#myModal1"> CEP </a>

<a href="#" data-toggle="modal" data-target="#myModal1" #link> CEP </a>

the you can access it with