So I have
<li>
<span id="foobar"> abc </span>
</li>
I now have li as an nodeObject. I could get "LI" by using li.nodeName.
Now how could I get "foobar" out of li which is an ID of a span inside it.
I tried:
$node = li;
alert($node>span.Id);
but not working, thanks!
You can do it like this…
or this…
or this…