Sprawdzenie zaznaczenia elementów typu radio w formularzu
function zapytanie(name) {
var is_checked;
var form = document.forms[name];
for (i = 0; i < form.elements.length; i++) {
with (form.elements[i]) {
if (name == "offer_id_radio") {
if (form.elements[i].checked) {
is_checked = true;
break;
}
}
}
}
if (is_checked)
form.submit();
else
return;
}