View Full Version : Radio buttons selected

01-03-2007, 10:24 AM
I cant get the length of a group of radio buttons.

the javascript is:

function Validate(form)
var overall_result = false;
var not_checked,id;
var docs = new Array();

var docs_ids = document.MainForm.docs_ids.value;
docs = docs_ids.split(",");
for (var i=0; i<docs.length; i++)
id = docs[i];
for(var x=0; x<document.MainForm.id[x].length; x++)
if (document.MainForm.id[x].checked)
not_checked = docs_ids[i];

return overall_result;

and the html takes the form:

<td><input type="radio" name="29075" value="approve" /></td>
<td><input type="radio" name="29075" value="reject" /></td>
<td><input type="radio" name="29075" value="abstain" /></td>
<tr align="center" class="table1content">
<td><a href="">SE.03</a></td>
<td><input type="radio" name="53039" value="approve" /></td>
<td><input type="radio" name="53039" value="reject" /></td>

Any help would be greatly appreciated

Mr J
01-03-2007, 05:19 PM
Take a look at the examples on this page they may help you