Naveen K K Naveen K K - 1 year ago 58
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>

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

the you can access it with

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download