$('.js-switch-small').on('change.bootstrapSwitch', function(e) {
(e.target.checked) ? $(this).siblings('.switch-toggle').show() : $(this).siblings('.switch-toggle').hide();
//console.log(e.target.checked);
}); 'javascript' 카테고리의 다른 글
| 체크박스 체크 했을 때 이벤트 checked (0) | 2020.04.10 |
|---|---|
| [bootstrap] multiple selected 선택 n개 이상일 때, 전체일 때 (0) | 2020.04.08 |
| [datepicker.js] 날짜 출력 형식 format 수정 (0) | 2020.04.06 |
| select option value에 따라 show/hide 실행하기 (0) | 2020.04.04 |
| 오른쪽 마우스 클릭, 드래그 방지 (0) | 2020.04.04 |
댓글