I have read the artivle on how to make forms, here it is:
http://www.cs.tut.fi/~jkorpela/forms/choices.html
For radio group buttons i would do :
var buttonGroup =
document.forms['formNAMEnotID'].elements['elementNAMEnotID'];
for (var i = 0; i < buttonGroup.length; i++) {
if (buttonGroup[i].checked) {
var value = buttonGroup[i].value;
}
}
,
but what about checkboxes with the same name ? Can i use snipped above
(eg assuming checkboxes with the same name have the lenght property ?).
Any finally if i have some inputs with the same name does they have
length property when i address them like this:
document.forms['formNAMEnotID'].elements['elementNAMEnotID'].lenght;
//assuming that form have more then one elementNAMEnotID input.
Thanks for answer in advance.
Thanks for answer in advance.