What I already got by JQuery Selector on using:
$("li[data-uid='"+dialogItem.uid+"']")
is:
<li role="treeitem" class="k-item k-first k-last" data-uid="b3e03746-c914-49a6-a95f-756de2d97a1b" aria-selected="false" data-expanded="true" aria-expanded="true">
<div class="k-top k-bot">…</div>
<ul class="k-group" role="group" style="display: block;">
<li role="treeitem" class="k-item k-last" data-uid="cdd29906-aa64-43bc-b727-950a32ce5c00" aria-selected="true" data-expanded="true" aria-expanded="true" id="dialogtreediv_tv_active">…</li>
</ul>
</li>
I want to get the data_uid cdd29906-aa64-43bc-b727-950a32ce5c00 from the most inner "li" but as soon as I add the element "ul" to the selector (to go one step deeper) I don't get anything back: $("li[data-uid='"+dialogItem.uid+"'] ul" (same with "> ul" or "ul:first-child")
The weird thing: If I add "div" (instead of "ul") it goes into the div element.
What am I doing wrong or is Jquery unable to handle different element types on the same hierarchy (in this case "div" and "ul")?