dev/web (2) 썸네일형 리스트형 [Select2] Select2 선택박스 안에 무한스크롤 구현하기 HTML + Select2 + JQuery + C# + IBatis Select2에서 지원하는 Pagination 기능을 통해 선택박스 안에 infinite scroll 무한스크롤을 구현할 수 있다. 공식문서 참고 https://select2.org/data-sources/ajax Ajax (remote data) | Select2 - The jQuery replacement for select boxes Ajax (remote data) Select2 comes with AJAX support built in, using jQuery's AJAX methods. In this example, we can search for repositories using GitHub's API: In your HTM.. [html] 개행태그 pre 사용하기 / 엔터 없는 긴 텍스트 자동줄바꿈하기 html에서 텍스트를 출력하면 개행문자가 적용되지 않고 한 줄로 길게 출력된다. 샘플코드 enter enter enter 결과 태그를 사용하면 줄바꿈이 적용된다. 예전엔 소스코드 자체를 있는 그대로 출력하는 태그도 사용했지만 현대 웹 개발에는 사용되지 않는다. 샘플코드 enter enter enter 결과 다만 태그는 텍스트를 작성한 그대로 출력하기 때문에, 아주 긴 글을 개행 없이 작성했다면 width를 무시하고 길게 이어진다. 샘플코드 This is an example of preformatted text. It will preserve all white space and line breaks exactly as they appear in the source code. 결과 아래와 같이 width를 .. 이전 1 다음