i want to validate this form in this way
i have a select for them to select their contact preference one of them is Fax and i dont have a fax number required to be typed in
i want to to be required if they select fax how do i do this ?
this is what i have so far
Code:
function fax(formField,fieldLabel,required)
{
var result = true;
if(!result)
{
alert("You have selected Fax as your contact preference please type in your fax number");
{
return result;
}
i know no javascript this is all just stuff i copied and threw together
please help