Getting index of an element in a Selection Group


I have a Selection Group created and I need to get the index of the element that is selected within that group. How can I do that?

I DON’T want to use a repeater for doing this.

-Mani B

Using javascript: there is a [selectiongroup] attribute and a “selected” class on the div. Then return the ID or data-label.

Its probably easier to just set an onSelected interaction to update a global variable though.