자바스크립트 셀렉트박스 값 구하기 > script

본문 바로가기

script

자바스크립트 셀렉트박스 값 구하기

작성일 11-10-11 19:27

페이지 정보

작성자서방님 조회 334회 댓글 0건

본문

options 의 갯수 = select.length

 

select 박스는 form 태크 안에 있어야 값을 가지고 오네...-_-;;

 

var form = document.frm;

 

var text    = form.select.options[form.select.selectedIndex].text;

var value = form.select.options[form.select.selectedIndex].value;

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기