일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 오라클
- jsp
- oracle
- mysql
- librecad
- 코딩
- 아두이노
- Spring Security
- 시작하기
- 잡토이 메이킹 코딩 학원
- tomcat
- html5
- 설치
- 리브레캐드
- 스크래치
- Android
- 라즈베리파이
- s4a
- 파주
- 강좌
- 잡토이
- 톰캣
- 예제
- 운정
- MSSQL
- jobtoy
- 안드로이드
- Unity
- 설정
- 유니티
- Today
- Total
랩제이
prototype select box 값 가져오기 본문
select box 값 가져오기
writeLog('value1 = '+value1);
writeLog('value = '+$("selUseTime").value);
writeLog('text = '+$("selUseTime").text); // 나오지 않음
writeLog('selectedIndex = '+$("selUseTime").selectedIndex);
writeLog('length = '+$("selUseTime").length);
writeLog('length = '+$("selUseTime").options[$("selUseTime").selectedIndex].text);
writeLog('length = '+$("selUseTime").options[$("selUseTime").selectedIndex].value);
<select name="selUseTime" id="selUseTime" size="1">
<option value="25">0시간30분</option>
<option value="50">1시간00분</option>
<option value="75">1시간30분</option>
<option value="100">2시간00분</option>
<option value="125">2시간30분</option>
<option value="150">3시간00분</option>
</select>
결과 >
value1 = 1
value = 25
text = undefined
selectedIndex = 0
length = 6
length = 0시간30분
>>length = 25
'programming > jsp' 카테고리의 다른 글
radio button disabled (0) | 2012.03.21 |
---|---|
iframe 사이즈 늘리기(2) (0) | 2012.03.21 |
innerHTML (0) | 2012.03.21 |
parent에서 iFrame함수 호출하기 (0) | 2012.03.21 |
iframe 사이즈 늘리기(1) (0) | 2012.03.21 |