새소식

개발관련/jQuery

기타 유용

  • -
SMALL
  1. 셀렉트 콤보박스 처리

    $("select[@name=player_id]").each(function(i){
    alert( $("select[@name=player_id] option:selected").eq(i).text() );
    });

 

  1. select box의 내용 가져오기

    $("#select_box > option:selected").val();


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

이 글은 스프링노트에서 작성되었습니다.

LIST

'개발관련 > jQuery' 카테고리의 다른 글

jQuery 배열  (0) 2011.04.21
xml 데이터 파싱 예제  (0) 2011.04.21
jModal(모달리스)  (0) 2011.04.21
기본셀렉터 치터  (0) 2011.04.21
문자열함수  (0) 2011.04.21
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.