0
I think the title is quite self-explanatory but come on, I have a return of a json that comes from an sql, which can give me the following situation
<div class="conteudo-select" style="display: block;">
<div class="razaoSocial">
<a onclick="pegarValor(); return false;">Nicolas e Yuri Contábil ME</a>
</div>
<div class="nomeFantasia">
<a onclick="pegarValor(); return false;">ny contabilidade</a>
</div>
<div class="razaoSocial">
<a onclick="pegarValor(); return false;">Jennifer e Thiago Lavanderia Ltda</a>
</div>
<div class="nomeFantasia">
<a onclick="pegarValor(); return false;">jt lavanderia</a>
</div>
</div>
I’m needing to pick up the content inside the tag a...
tried with the die = event.srcElement.innerText;
but does not work in Firefox, nor putting parameter in function function pegarValor(event) {
Is there any way I can do it?
thanks for the answer, I believe it would work perfectly
– gabrielfalieri