Is there a way I could create a function that can retrieve a value, update an image source, and then incrementally select another value? It would be incredibly helpful if you could provide a reference where I could learn how to do this or explain it in detail... My main objective with this information is to achieve the following:
https://i.sstatic.net/kzPRm.pngThis request is specific to my needs, but taking into consideration what I aim to accomplish with your response would greatly benefit me! :D On the left-hand side of the table are textboxes where users will input country names. I want users to click a button labeled "Next Speaker", which will then select a textbox, change the value of the textbox beneath the flag of the United Nations to match that country name, and display the corresponding flag (assuming each flag file is named after its respective country).
<img src='flags/(Whatever the selected text box says).svg'>