พี่คับช่วยดูให้ผมทีคับผมจะวน Array มาเชคยังไงคับ
Array
(
[quizid] => Array
(
[0] => 254
[1] => 255
[2] => 256
[3] => 257
[4] => 258
[5] => 259
[6] => 260
[7] => 261
[8] => 262
[9] => 263
[10] => 264
[11] => 265
[12] => 266
)
[Comments] =>
[submit] => ส่งคำตอบ !
)
<script language="javascript">
function check(frm) {
while(Array()=''){
var inputs = frm.getElementsByTagName('quizid');
for(var i = 0 ; i < inputs.length ; i++){
quizid = inputs[i];
if(input.type == 'radio'){
if (input.checked){
return true;
};
};
};
alert('กรุณาเลือกอย่างน้อย 1 รายการ');
return false;
} }
</script>