I have the following HTML:
<tr>
<td>
VALOR PARA SER PEGO
<span>Esse valor não é pra ser pego</span>
<span>Esse valor também não é pra ser pego</span>
</td>
</tr>
I have specified what values I would like to get, note that the "VALUE TO BE PEGO" is inside the div
however loose inside, is not inside <span>
tag, how could I do it to get it?
I tried the following way, but it brings all the values, including those that are within <span>
, those that are within <span>
I will not use.
$("#tabela > tr > td").text();