Use jquery onlick to insert an element value into a form
===

I would like to use jquery to have elements' (in this case images) values entered into a hidden form when they are clicked on (and in the green div) But when they get clicked again the value removed from the form input (when the element is in the blue div). How can I do this, with an unlimited (dynamic) number of element values that need to go into the form?
For the sake of the example, the form field is visible to see if the values get entered.

http://jsfiddle.net/cmfZX/8/



