반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- ELK
- npm
- 파이썬
- 퇴사후공무원
- 방이편백육분삼십성신여대
- 서울숲누룽지통닭구이
- 스페인여행
- 돈암동맛집
- 성신여대편백집
- 통영에어비앤비
- springboot
- 성신여대맛집
- JavaScript
- 성북구맛집
- 한성대맛집
- 통영여행
- 영화추천
- 공무원
- 방이편백육분삼십
- 뚝섬역맛집
- react
- 국가직
- 통영예쁜카페
- 한남동맛집
- ubuntu자바설치
- 꼴뚜기회
- gradle
- tomcat7
- 통영
- 자바스크립트에러처리
Archives
- Today
- Total
코린이의 기록
[Jquery] multiselect.js를 이용한 Multi Select Box 구현하기 본문
반응형
bootstrap.min.css, jquery.min.js, multiselect.js 를 로드한다.
1 | <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | cs |
1 2 3 | <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="//netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <script src="js/multiselect.js"></script> | cs |
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 | <div class="row"> <div class="col-xs-5"> <select name="from" id="multiselect" class="form-control" size="8" multiple="multiple"> <option value="1">C++</option> <option value="2">C#</option> <option value="3">Haskell</option> <option value="4">Java</option> <option value="5">JavaScript</option> <option value="6">Lisp</option> <option value="7">Lua</option> <option value="8">MATLAB</option> <option value="9">NewLISP</option> <option value="10">PHP</option> <option value="11">Perl</option> <option value="12">SQL</option> <option value="13">Unix shell</option> </select> </div> <div class="col-xs-2"> <button type="button" id="multiselect_rightAll" class="btn btn-block"><i class="glyphicon glyphicon-forward"></i></button> <button type="button" id="multiselect_rightSelected" class="btn btn-block"><i class="glyphicon glyphicon-chevron-right"></i></button> <button type="button" id="multiselect_leftSelected" class="btn btn-block"><i class="glyphicon glyphicon-chevron-left"></i></button> <button type="button" id="multiselect_leftAll" class="btn btn-block"><i class="glyphicon glyphicon-backward"></i></button> </div> <div class="col-xs-5"> <select name="to" id="multiselect_to" class="form-control" size="8" multiple="multiple"> </select> </div> </div> | cs |
multiselect 초기화
1 | $('#multiselect').multiselect(); | cs |
Demo : https://www.jqueryscript.net/demo/Two-side-Multi-Select-Plugin-with-jQuery-multiselect-js/
Reference : https://www.jqueryscript.net/form/Two-side-Multi-Select-Plugin-with-jQuery-multiselect-js.html
반응형
'javascript,HTML,CSS' 카테고리의 다른 글
[jquery] 동적으로 select box selected option 주기 (1) | 2019.03.07 |
---|---|
[javascript] getOutputStream() has already been called for this response (0) | 2019.02.22 |
[HTML/JS/CSS] HTML + CSS + JS를 이용한 동적 테이블 페이징 구현 (1) | 2018.12.14 |
[javascript] <form> tag to Javascript Object & JSON (0) | 2018.12.06 |
[javascript] ajax list object 가져오기 (0) | 2018.10.17 |
Comments