Ok, cool... we are on the way!
So, basically, i am trying to imitate a form selection.. but I want
people to be able to click on nice pretty divs, and when they click on
them, i want the the name of the item they clicked on to be stored
along with other form data.
So I was thinking, make a hidden input, whose value is a variable...
and that variable is set by an anchor link.
So a user clicks on the link surrounding an Image (the link doesnt go
anywhere, it just has a nice rollover effect, and the click action
changes the div style), and then I take the name of the image they
clicked on and pass that into the variable and then call that variable
in the hidden field when the form is submitted.
Is that completely illogical? is there a better way to accomplish that?
The options to be selected will not change that often, so I thought i
could do something like
<a href="#" onClick="setVariable(imageA)">
then something like
<input type="hidden" value="variable">
But since I really dont know JavaScript, im trying to figure out how to
write a function that can capture that data and pass it on...