JavaScript onsubmit data verification

liunx

Guest
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<br />
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!<!--content-->If you post this question in the javascript forum, you may have better luck. I'm sure a mod will move it ASAP!<!--content-->
 
Back
Top