I am working on a simple news module. There is a form where user adds multiple image IDs to one textbox then submits it. To improve the usability, I listed all the images they can add (ID numbers displayed next to it) on one side. However, this still is little bit confusing. I want image IDs added/deleted to the textbox when user clicks on the images.
Spare me codes, methods, ideas, examples… I will take anything.
<input type="hidden" name="photo[ID_HERE]" value="0" />....<li><img src="..." id="photo-123" /> Photo #123</li>...Add listener for click event for those images that will change value of input associated with image: