728x90
반응형
https://start0.tistory.com/223
[jQuery] select option value 이외에 다른 값 사용하기(data 함수)
main text 1 main text 2 main text 3 main text 4 main text 1 main text 2 main text 3 main text 4 select 태그 뿐만 아니라 다른 태그들도 data-**으로 사용 가능하다.
start0.tistory.com
vlaue 값에 구분자를 넣고 값을 2개이상 넣을 수도 있고
data 속성을 추가할 수 도 있다.
728x90
반응형
'Front > JS & jQuery' 카테고리의 다른 글
[js] Axios (0) | 2023.05.11 |
---|---|
[jQuery] multiselect('rebuild') (0) | 2023.05.09 |
[jQuery] 요소삭제 (0) | 2023.04.29 |
[jQuery] multiselect select(선택하기) (0) | 2023.04.26 |
[jQuery] multiselect 의 text값 배열로 반환하기 (0) | 2023.04.24 |