Which inline list item is clicked

Yes, that works.

See also below for a similar use case:

2 Likes