새소식

개발관련/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
Contents

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

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