Finding targets within another target

I had a similar case, what I ended up doing was finding the closest question e.target.closest(".question") and then a querySelector. I don’t think the use of querySelector is discouraged when necessary.

Stimulus does rely on querySelectors anyhow -> Are Targets always in document order?

1 Like