Problem creating table of content page in HTML without ID

46 Views Asked by At

How can the following toc entry

<li role="treeitem" aria-selected="true" aria-level="1" aria-labelledby="h1_37_3_anchor" id="h1_37_3" class="jstree-node  jstree-leaf">
  <i class="jstree-icon jstree-ocl" role="presentation"></i>
  <a class="jstree-anchor jstree-clicked" href="#" tabindex="-1" id="h1_37_3_anchor">
    <i class="jstree-icon jstree-themeicon" role="presentation"></i> 
آدَابُ الدُّعَاءِ   دعا کے آداب   
 </a>
</li>

be linked to following HTML content without ID?

<span class="ma mb1 mi0 mul0 mal1 ms22">
آدَابُ الدُّعَاءِ 
<span class="mu mb1 mi0 mul0 ms22">دعا کے آداب</span>
</span>

Above code is from a working website. I just cannot understand how it works without ID and specifying JavaScript. This is only one entry from TOC and content. There are many like above entries.

I want to understand how above code works.

0

There are 0 best solutions below