View Single Post
  #2 (permalink)  
Old April 11th, 2007, 11:51 AM
jonsey jonsey is offline
Authorized User
Join Date: Jan 2007
Location: , , USA.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jonsey Send a message via Yahoo to jonsey

here is a JavaScript that would look for all the radio button and see what there status is if emptyl/unchecked it would simply say please check all radio buttons.

Code in JavaScript

for (i=0, n=theForm.radios.length; i<n; i++) {
if (theForm.radios[i].checked) {
     var checkvalue = theForm.radios[i].value;
why += checkRadio(checkvalue);

function checkRadio(checkvalue) {
var error = "";
if (!(checkvalue)) {
     error = "Please check a radio button.\n";
return error;