I have seen several examples of how to do this here in the stack, but I do not know why the answers do not clarify much, then I would ask again how I could use JS to get the tag <A>
of the following DIV, REMINDING that my code is in the main DIV.
<li id="sem-importancia">
<DIV id="principal">
<a id="um-teste"> </a>
</DIV>
</li>
When I use the following js, it works perfect and I get a tag above ...
var item_id = elem.parent('li').attr('id');
LOGO what code to use to get the tag below? to
< a id="um-teste" > < /a >
Thank you!