Question Details

No question body available.

Tags

javascript jquery

Answers (1)

Accepted Answer Available
Accepted Answer
June 26, 2026 Score: 4 Rep: 64,681 Quality: High Completeness: 40%

Your attempt is creating a function. Remove the arrow function item => like so.

let gridIndexValue = [...item.parentNode.children].indexOf(item)

Now, gridIndexValue is a value not a function.