내가 항목 번호 I는 "RB"로 시작하는 모든 라디오 버튼을 반복하는 jQuery를 사용할 수있는 방법jQuery를 라디오 버튼 초보자 질문
<input type="radio" id="rb169">
<input type="radio" id="rb170">
<input type="radio" id="rb171">
포함 된 ID 값이 라디오 버튼의 테이블이 # 번호가 선택되었는지 확인 하시겠습니까?
내가 좋아하는 뭔가가 있습니다
return_type = $("input:radio["@name=rb*"]:checked").val();
if (return_type == undefined) {
alert("you did not select a radio button");
}
을하지만 내가 선택한 방식으로 작동하지 않습니다. 이게 옳은 거니?