Console
hyTags
Home
Home
Documentation
Documentation
selection-get-child-index
Gets the index of the selected element among its parent's children.
Parameter
Type
Description
return
number
Zero-based index of the element
Test Case:
Get child index
<div></div>
<div></div>
<selection-get-child-index> <assert-equal value="0" type="number">
<selection-get-child-index> <assert-equal value="0" type="number">
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed