반응형 jquery2 [jQuery] input file 초기화 버튼 생성, 초기화 하기 HTML 초기화 jQuery function btnHidden() { $(".fileResetBtn").attr("style", "display:none"); } $(function() { // 버튼을 숨긴다 btnHidden(); // 파일 업로드가 될 때 버튼을 생성한다. $(".fileInput").on("change", function() { if ($(this).val() != "") { $(this).siblings(".fileResetBtn").attr("style", "display:block"); } else { btnHidden(); } }); // 버튼을 누르면 파일 값을 없앤다 $(".fileResetBtn").click(function() { $(this).siblings(".fi.. 2021. 8. 12. [jQuery] 딤처리 레이어 팝업 여러개 사용 HTML 첫번째 팝업 열기 두번째 팝업 열기 닫기 첫번째 팝업 두번째 팝업 CSS .popup_bg { position: fixed; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .7); z-index: 500 } .btn_popup { border: none; background: #eee; padding: 10px 30px; border-radius: 30px } .popup { position: fixed; top: 50%; left: 50%; min-width: 200px; min-height: 150px; background-color: #fff; border-radius: 8p.. 2021. 7. 20. 이전 1 다음 반응형