작성자
꿘쓰

작성일/수정일
2015-03-26 10:04:57 / 2015-03-26 10:04:57
select 2는 jquery 기반으로 select box 를 대신하여 사용합니다.
검색 지원, 원격 데이터 세트, 결과 무한 스크롤
<head>
<link href="select2.css" rel="stylesheet"/>
<script src="select2.js"></script>
<script>
$(document).ready(function() { $("#e1").select2(); });
</script>
</head>
<body>
<select id="e1">
<option value="AL">Alabama</option>
...
<option value="WY">Wyoming</option>
</select>
</body>
# select box 넓이를 실제 불러온 데이터 넓이에 맞게 표현하고싶을때
{width: 'resolve'}
$(document).ready(function() {
$("#myselect").select2({ width: 'resolve' });
});