[jQuery] .on() 이벤트 여러개 $('#dataTable tr').on({ mouseenter: function() { $(this).addCalss("checkedLine"); }, mouseleave : function() { $(this).removeClass("checkedLine"); } }); .on() 안에 이벤트를 여러개 넣을 수 있다. .on() 함수 형식 $(selector).on( evnet, childSelector, data, function ) Front/JS & jQuery 2023.02.15
[js] switch문 case 여러개 switch ( idx ) { case 1 : ~코드작성 break; case 2: case 3: case 4: ~코드작성 break; default: ~코드작성 break; } https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/switch switch - JavaScript | MDN The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case, as well as statements in cases that follow t.. Front/JS & jQuery 2023.02.13
[jQuery] get disabled selectbox value / 비활성화된 셀렉트박스의 값 넘기기 https://okky.kr/articles/340534 OKKY - select box "disabled" 속성 submit 시 삭제 하는 방법.. select box를 readonly 시키기위해서 disabled 속성을 사용했는데요.form submit 발생시 disabled 속성을 삭제해줘야 값이 넘어간다고 하더라구요.submit 직전 select 박스의 disabled 속성을 삭제하기 위한 jquery 이 okky.kr 저장버튼을 누르고 저장메서드가 실행되기전에 $('선택자').removeAttr('disabled'); 값이 넘어갔다 ^_^ Front/JS & jQuery 2023.02.10
[js] String.includes ( 문자열 포함 체크 ) https://www.codingfactory.net/10899 JavaScript / Object / String.includes() / 특정 문자열을 포함하는지 확인하는 메서드 .includes() .includes()는 문자열이 특정 문자열을 포함하는지 확인하는 메서드이다. IE는 Edge부터 지원한다. 문법 string.includes( searchString, length ) searchString : 검색할 문자열로 필수 요소이다. 대소문자 www.codingfactory.net Front/JS & jQuery 2023.02.04
[bootstrap] multiselect 추가옵션 ( value, label 말고 ) return itemList.map(function(obj) { let option = {}; option.value = obj.ITEM_CD; option.label = obj.ITEM_NM; option.attributes = { 'price': obj.ITEM_PRICE, 'weight': obj.ITEM_WEIGHT }; return option; }); Front/JS & jQuery 2023.01.22
[bootstrap] multiselect https://mdbootstrap.com/docs/standard/extended/multiselect/ Bootstrap Multiselect - free examples, templates & tutorial Responsive Multiselect built with Bootstrap 5. Examples of multiselect dropdown with checkbox, listbox, search, buttons, groups, icons, validation, disabled mdbootstrap.com Front/JS & jQuery 2023.01.18
[jQuery][datatables] 페이지 이동시키기 .page() https://solbel.tistory.com/1896 [javascript/jquery] jquery datatable move to page example / jquery datatable 페이지 이동 처리 방법 [javascript/jquery] jquery datatable move to page example / jquery datatable 페이지 이동 처리 방법 jqery datatable 에서 제공하는 page 기능을 사용할 수도 있지만, 특정 상황에 따라 페이지를 강제로 이동시켜야 하는 solbel.tistory.com https://datatables.net/reference/api/page() page() page() Since: DataTables 1.10 Get / set the.. Front/JS & jQuery 2022.12.31
[js] Object.entries() [ key, value ] 쌍의 배열을 반환하는 메서드 https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/entries Object.entries() - JavaScript | MDN Object.entries() 메서드는 for...in와 같은 순서로 주어진 객체 자체의 enumerable 속성 [key, value] 쌍의 배열을 반환합니다. (for-in 루프가 다른점은 프로토 타입 체인의 속성도 열거한다는 점입니다). developer.mozilla.org Front/JS & jQuery 2022.12.30
[jQuery] .parent() .parents() .parent() - 부모요소를 선택하는 함수 .parents() - 부모 + 부모의 부모 + ... + 즉, 조상요소를 모두 선택하는 함수 Front/JS & jQuery 2022.12.29
[JS] JSON 객체 Key값 동적 할당 optionJsonArr.push({[key]: value}); key 값을 [] 로 묶으면 키값을 돟적으로 할당해줄수있다. https://kyounghwan01.github.io/blog/JS/JSbasic/jsonDynamicAllocation/ JavaScript - JSON 객체 Key값 동적 할당하기, js, html, css, 웹개발, 개발자, 프론트엔드, 백엔드, web JavaScript - JSON 객체 Key값 동적 할당하기, js, html, css, 웹개발, 개발자, 프론트엔드, 백엔드, web kyounghwan01.github.io Front/JS & jQuery 2022.12.28