Click to See Complete Forum and Search --> : JavaScript onsubmit data verification


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!

Stopper31
04-26-2004, 06:48 PM
If you post this question in the javascript forum, you may have better luck. I'm sure a mod will move it ASAP!