I don’t know if this is even possible, and I’m not sure how to exactly phrase the title.
I have a simple HTML text field . On the right side of the text field, I have a “search item” button. When I click on the button, I want a modal window to pop up via jquery. In that modal window, I have many images. Each image has a specific value, e.g. img1, img2, img3 and so on.
What I am trying to do is when an image is clicked, the modal window should close, and the value of the image should be inserted into the HTML text field.
Is this even possible? If yes, how exactly can this be done? Can anyone refer me to some websites or give me potential searching keywords, or even better, a simple example code.
It’s not only possible, it’s fairly simple, here’s an example of how to do something similar ?