johnpitchko said almost 3 years ago on Hotwire Dashboards :
Thanks   I was hoping there was an easy non-Stimulus/JS solution (as I haven't dug into Stimulus yet). Maybe there is but you're solution is probably fine. I will experiment with your solution and see what I come up with!