I need to get the Name only of the Element that I clicked on, but when I search for textContent
all the li
appears
<li class="folder folder-open Selected">
TesteNfseSPO
<ul>
<li class="file">TesteNfseSPO.sln</li>
<li class="folder">TesteNfseSPO
<ul>
<li class="file">TesteNfseSPO.csproj</li>
<li class="file">Program.cs</li>
<li class="file">app.config</li>
<li class="folder">Properties
<ul>
<li class="file">AssemblyInfo.cs</li>
</ul>
</li>
<li class="folder">bin
<ul>
<li class="folder">Debug
<ul>
<li class="file">NfseSPO.dll</li>
</ul>
</li>
</ul>
</li>
<li class="folder">obj
<ul>
<li class="folder">Debug</li>
</ul>
</li>
</ul>
</li>
</ul>
I would like for example when I click to get only "Program.cs" when I click on it, in all cases.