셀렉트 박스를 사용하다보면 select 개수가 너무 많아지거나 할경우 검색 기능이 필요 해질수 있다 .
해당 라이브러리 사용하면 바로 적용해볼수 있다.
여러개 선택도 지원이 된다.
공식 사이트 주소
https://select2.github.io/select2/
Select2 3.5.3
matcherfunction Used to determine whether or not the search term matches an option when a built-in query function is used. The built in query function is used when Select2 is attached to a select, or the local or tags helpers are used. matcher(term, text,
select2.github.io
샘플
Select2 demo - JSFiddle - Code Playground
jsfiddle.net
'JS & Jquery' 카테고리의 다른 글
[JS] 동적 이벤트 처리 (0) | 2024.05.23 |
---|---|
[JS] 데이터 시각화 라이브러리 D3.js (0) | 2024.05.09 |
[Js] 브라우저 디버깅 (0) | 2024.05.07 |
[JS] 공부하기 좋은 사이트 (0) | 2024.04.12 |
[JS] 선택자 (0) | 2024.04.12 |