2008년 3월 7일 금요일

[jquery] jquery context를 사용한 select box 관련 정리

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

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

댓글 없음:

댓글 쓰기