How to Get Data from Clicking on Polygon on Leaflet Map

You could have an input that (like a select input) and update that based on the map click. The initially selected one would be the one shown.

Sort of like this: Select polygon by clicking on map, changing item selected via dropdown - #3 by williaml