테스트 사이트 - 개발 중인 베타 버전입니다

radio 컨트롤

· 9년 전 · 284

// [ radio 컨트롤 ] --------------------------------------------------------------///
if($(':radio[name="section"]:checked').length < 1) { alert('분류를 선택하세요'); it.section[0].focus(); return false; } 
또는 if (!$(':radio[name="gender"]:checked').val()) { alert('성별을 선택하세요'); $("#gender1").select(); return false; } 
if($(':radio[name="p_addressGubun"]:checked').val() != 3) { ... }
체크해제 : $("#office").attr('checked', 'false')가 안되서 it.place[1].checked = false; 로 적용함
 
disabled : $(':radio[name="gender"]').attr('disabled', 'disabled');
 
$("input[name=radioName][value=" + resultValue + "]").attr("checked", true);
 
선택된 라디오 버튼 값 가져오기
$('input:radio[name="certWay"]').val();
$(':radio[name="radio"]:checked').val(); 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12333
12332
12331
12329
12328
12327
12326
12325
12324
12323
12322
12321
12320
12319
12318
12317
12316
12315
12314
12313
12312
12311
12310
12309
12308