728x90
Select elements typically have two values that you want to access. First there's the value to be sent to the server, which is easy:
1 2 |
|
The second is the text value of the select. For example, using the following select box:
1 2 3 4 5 6 7 |
|
If you wanted to get the string "Mr" if the first option was selected (instead of just "1") you would do that in the following way:
1 2 |
|
'WEB > jQuery' 카테고리의 다른 글
jQuery 페이지 부분 새로고침 | Refresh Part of Page by jQuery (0) | 2018.02.21 |
---|---|
[jQuery] 테이블의 특정 행(row)의 값 가져오기 (0) | 2018.02.18 |
jquery checkbox 전체 선택, 전체 해제, 체크 값 추출 (0) | 2018.01.24 |
[jQuery] Number with comma I (0) | 2018.01.24 |
[jQuery] not($(this)) - this가 아닌요소 선택 (0) | 2018.01.24 |