336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

$("#txtEndDate2").attr("disabled", true);
$("#txtEndDate1").css('background-color', 'Gainsboro');

 

 

1. 가장 많이 쓰이는 방법
$('#test input[name=number]').each(function()
{
    alert(this.value);
}
 

 

2. 해당 값을 가지는 input이나 select가 몇 번째에 있는가?
$('#test input[name=number]').each(function(index)
{
    alert(index);
}


 

3. 다른 input이나 select에 인덱스로 접근하고 싶다?
$('#test input[name=number]').each(function(index)
{
    // 선택한 체크박스에 동일한 인덱스 번호를 가지는 다른 input값!
    f( true == $(this).attr('checked') )
    {
        alert($('#another input[name=address]').eq(index).val()));
    }
}


4. Name이 배열일 경우 Index 구하기.

var index = $('input[name="cksub"]').index(obj);    //cksub명이 배열로 있을 경우

 

alert($("input[name=RCNAME]").eq(0).val());
alert($("input[name=RCNAME]").eq(1).val());

'IT > jquery_javascript' 카테고리의 다른 글

jquery select selector  (0) 2013.08.23
DOM Script 정리  (0) 2013.08.21
jquery 문자열 함수  (0) 2013.08.20
[jquery] Input Select  (0) 2013.04.08
jquery rolling and slider  (0) 2013.04.01
Posted by 당양부부34

블로그 이미지
주요 토렌트를 블로깅하고 있습니다. 토렌트 순위 등은 다른 사이트를 찾아보세요. 주요 웹툰 순위도 게재했어요 경제를 좋아하는 일산의 행복한 프로그래머입니다.
당양부부34
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함