-
셀렉트 콤보박스 처리
$("select[@name=player_id]").each(function(i){
alert( $("select[@name=player_id] option:selected").eq(i).text() );
});
-
select box의 내용 가져오기
$("#select_box > option:selected").val();
select box의 값 설정
$("#select_box > option[@value=지정값]").attr("selected", "true")
이 글은 스프링노트에서 작성되었습니다.