양식에 여러 개의 동적 라디오 버튼이 있습니다. 함수에서 값을 가져 오려고합니다. 내가 jQuery 코드를 사용하지만제출시 기능에서 라디오 버튼의 값을 경고하고 싶습니다.
This is my code of radio button
<input type="radio" name="data[<?php print '.$x.';?>]" value="' . $student . '" /> <label for name=' . $student . '>' . $student . '</label>
</label>
function form_values()
{
var a = $('input[type="radio"]:checked').val();
alert(a);
}
, 당신은 아래와 같이 각 라디오 버튼에 대한 루프 다음 경고 값을 만들 필요가 나를
가능한 중복 (http://stackoverflow.com/questions/17901255/what-is-the-best-ways-to-get-the-multiple-checkbox-checked-value-using-jquery) – prasanth