Hello, how can I get the <li> index inside nested <ul>?
Here's my code
If I clicked the li inside ul id = second, The output was:
HTML:
<ul id="first">
<li> <!-- I want to get the index of this li -->
<a>Item here</a>
</li>
<ul id="second">
<li> <!-- I want to get the index of this li also -->
<a>Item here</a>
</li>
</ul>
</ul>
Here's my code
B4X:
Private sub First_Click (Params as Map)
Dim target As String = Params.Get("target")
log(target)
End Sub
If I clicked the li inside ul id = second, The output was:
JSON:
(MyMap) {which=1, metaKey=false, pageY=137, pageX=189, target}