Hey guys,
I have a form made up, and there is an option where the user selects "Male/Female". The way its set up is as follows:
var lastLink;
function setLink(theLink){
if(lastLink) lastLink.className="genderSelect";
theLink.className="selected";
lastLink=theLink;
return false;
}
<ul>
<li>
<a id="genderMale" onClick="return setLink(this)" class="genderSelect" href="#">Male</a>
</li>
<li>
<a id="genderFemale" onClick="return setLink(this)" class="genderSelect" href="#">Female</a>
</li>
</ul>
What happens is that when the user selects a gender, the javascript changes the class of the list item to 'selected' which has its own properties.
What I need to do is send the information that is attached to the selected class through my form and into my database.
How would I create and pass that variable to my forms post file?
Thanks for any help,
Colm