650
yesterday 772
visitor 23,540,494
10

[ select box 컨트롤 ]
select box의 내용 가져오기
$("#select_box > option:selected").val();

select box의 값 설정
 $("#select_box > option[value=지정값]").attr("selected", "true")

select disabled
$('#sign02_emp_id').attr('disabled', 'true');
해제 $('#sign02_emp_id').attr('disabled', ''); // 'false'를 줬을경우 안됨

기타 참고 : http://www.texotela.co.uk/code/jquery/select/

[ 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');



[ checkedbox 컨트롤 ]

1. 개수 구하기


$("input[name=chk1]:checkbox:checked").length


☆☆☆  php에서 배열사용시  ☆☆☆


$("input[name='chk1[]']:checked").length


2. 체크여부 확인

$("#check_all").is(':checked')


3.  chk1 개수만큼 돌면서 실행한다

  $("input[name='item[]']:checkbox:checked").each(function(){items.push($(this).val());}); 

  var items_str = items.join(',');

  또는 var items_str = items.toString();


  또는 var items_str = $("input[name='item[]']:checkbox:checked").map(function () {return this.value;}).get();


4. disabled 하기

$("input[name=chk1]").attr('disabled', 'true');

 

출처 : http://blockboys2.egloos.com/1964264

 

 

'헬로마켓'과 함께하는 스마트한 중고 아이템 거래

https://www.hellomarket.com


2
profile

Nicholas

October 10, 2022
*.26.77.96

Nike Air Max 720 Nike Running Shoes For Men Christian Louboutin shoes Nike Factory Outlet Yeezys Nike Free Rn 2019 Nike Outlet Store Online Shopping Pandora Canada Jordan 11 Blue Red Bottom Shoes For Women Jordan 1 Pandora Necklace Adidas Yeezy Nike Store Online Jordan 32 Nike Zoom Winflo 5 Pandora Jewelry Rings Christian Louboutin Shoes Outlet Pandora Canada Cheap Nike Shoes Louboutin Outlet Jordan 4 Retro Pandora Charm Pandora Sale Pandora Official Website Jordans 1 UNC Jordan 1 Nike Shoes Nike Running Shoes Jordan 7 Nike Air Max 95 Essential Nike M2k Tekno Kevin Durant Shoes Nike Air Zoom Pegasus 36 Pandora Jewelry Nike Epic React Jordan 1 Louboutin Nike Outlet Store Nike Shoes 2019 Nike Air Max 2019 Nike Outlet Store Online Nike Outlet Store Adidas Yeezy Boost 350 V2 Pandora Rings Jordans Shoes Men Air Jordan 9 Mens Nike Shoes Adidas NMD Pandora Nike Factory Nike Sneakers For Men Fjallraven Kanken Yeezy Shoes Nike Basketball Shoes Nike Free Nike Air Max 97 Nike Air Max 720 Red Bottom Jordan 11 Retro Nike Shoes Pandora Canada Air Jordans Nike Factory Jordan 1 High New Jordans Nike Air Max 98 Gundam Kanken Backpack Nike Air Force Air Force Ones Ferragamo Outlet Jordan 8 Lebron 16 Nike Outlet Store Christian Louboutin Heels Pandora Bracelet Charms Nike Running Shoes Yeezy Boost Lebrons Shoes Pandora Air Jordan Shoes Nike Outlet Air Force 1 Low Nike Basketball Shoes Jordans Sneakers Nike Shoes Nike Store Online New Nike Shoes Christian Louboutin Outlet Nike Air Jordan Jordan 10 Pandora Bracelets For Women Nike Sneakers For Men Christian Louboutin UK Valentino Sandals Nike Cortez Adidas Sneakers For Women Ultra Boost Nike Outlet Online Nike Factory Adidas Yeezy Christian Louboutin Shoes Lebron Shoes Pandora Bracelets Yeezy Shoes Pandora Jewelry Official Site Kids Nike Shoes Air Force 1 Kyrie Shoes Louboutin Shoes Air Jordan Shoes Asics Shoes Jordan 14 Air Jordans Air Jordan 3 Nike Shoes Cyber Monday Nike Shoes Nike Shoes For Kids Jordan 12 Jordan Shoes Jordan Retro Louboutin Shoes Air Max 98 Kyrie Shoes Adidas Ultra Boost Mens Nike Shoes Yeezy 500 Black NMD Adidas Jordan AJ 1 Low Air Max 2019 Huarache Sandals Vans Shoes Outlet Jordan 11 Pandora Necklaces Pandora Earrings Lebron 16 Nike Shoes 2019 Christian Louboutin Jordan 13 Retro Jordan Shoes For Kids Ferragamo Belt Nike Sneaker Nike Outlet Store Jordan 4s Nike Sneakers Golden Goose Nike Clearance Store Jordan 11 Nike Presto Moncler UK Jordan 1s Pandora Outlet Nike Factory Store Nike Outlet Store Online Shopping Nike Clearance Nike Outlet Nike Air Max 270 Womens Jordan 13 Retro Nike Outlet Store Online Shopping
문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
10 input textarea 포커스 위치 알아내기 file 제리 2013-11-06 67391
9 jquery 다이얼로그 포커스 없애기 [1] 제리 2013-06-26 32510
8 ckeditor4 keyup 이벤트 추가 제리 2013-06-13 25746
7 jQuery 퍼포먼스 향상을 위한 Tips And Tricks [2] 제리 2013-04-30 70699
6 [mobile web] 접근 단말기에 따른 페이지 이동하기 제리 2012-12-28 20387
5 jQuery replace [1] 제리 2012-07-16 24538
» jquery select , radio, checkbox 컨트롤 (값가져오기 및 설정) [2] 제리 2011-11-28 92117
3 정규식 / 정규표현식 (Regular Expressions; Regex) 이란? 제리 2011-11-28 59899
2 text 전체선택 포커스 올때 ctrl+a [5] 제리 2011-11-11 34945
1 브라우저 언어별 페이지 이동 스크립트 [2] 제리 2011-11-02 22817

Program Note 로그인 :)