I have an HTML page which shows the data in in list form. It uses Tree hierarchy to load the data which comes up in the form of
<ul>
<li>A
<ul>
<li>subsection</li>
</ul>
</li>
<li>B
<ul>
<li>subsection</li>
</ul>
</li>
I'm using this to fetch the data from json file.
<li data-bind="attr: {id: $data['id']"> <div class="container"> <strong><span data-bind="text: $data['name']" class="oj-navigationlist-item-title speech"></span></strong></div></li>
Now I want to add a image icon only to the parent and not to the child dynamically.