radio 컨트롤

· 10년 전 · 282

// [ 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(); 

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

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 297
10년 전 조회 258
10년 전 조회 264
10년 전 조회 264
10년 전 조회 283
10년 전 조회 277
10년 전 조회 759
10년 전 조회 241
10년 전 조회 260
10년 전 조회 168
10년 전 조회 702
10년 전 조회 304
10년 전 조회 283
10년 전 조회 342
10년 전 조회 352
10년 전 조회 380
10년 전 조회 258
10년 전 조회 163
10년 전 조회 261
10년 전 조회 192
10년 전 조회 209
10년 전 조회 176
10년 전 조회 227
10년 전 조회 234
10년 전 조회 279
🐛 버그신고