function toggleVis(ContactMethod) {
if(ContactMethod == "email") {
if(document.getElementById('reqemail').style.visibility == 'hidden') {
document.getElementById('reqphone').style.visibility = 'hidden';
document.getElementById('reqemail').style.visibility = 'visible';
}
} else if(ContactMethod == "phone") {
if(document.getElementById('reqphone').style.visibility == 'hidden') {
document.getElementById('reqemail').style.visibility = 'hidden';
document.getElementById('reqphone').style.visibility = 'visible';
}
}
}
This is relating to a Radio Checkbox. the "onclick" doesn't seem to be firing / it isn't setting the visibility status of a <span>.
Firebug shows no errors. Not sure what I'm doing wrong.
www.awpti.org/?page=getquote