I think the title is quite self-explanatory but come on, I have a return from 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 need to get the content inside the tag to ...
I tried with data = event.srcElement.innerText;
but it does not work in Firefox, nor does it put parameter in function function pegarValor(event) {
Is there any way to do this that I need?