jakester
04-26-2004, 05:49 PM
I set up a simple data checking utility in js to check a form before it's uploaded, using the onsubmit event in the <form> tag. It worked fine in the text boxes but when it came to the radio buttons, it wouldn't work at all. All I wanted to check is to see if a radio button was selected using a line like
if(document.inputform.VehicleType.value =='') and it simply wouldn't pick up an unselected radio button group. I tried the oppossite like if(!(....1value!=''&&....2/value!=''&&........)) to see if that would trap the one but no way either. Does anyone have a suggestion!
if(document.inputform.VehicleType.value =='') and it simply wouldn't pick up an unselected radio button group. I tried the oppossite like if(!(....1value!=''&&....2/value!=''&&........)) to see if that would trap the one but no way either. Does anyone have a suggestion!