Archive
input file의 첨부파일 툴팁 제거 방법 (Remove 'No File Chosen')
// 제이쿼리 $('input[type="file"]').attr('title', window.URL ? ' ' : ''); // 자바스크립트 document.querySelector('input[type="file"]').setAttribute('title', window.URL ? ' ' : ''); URL이 있는 지 확인 후 타이틀을 빈 값으로 대체하는 방법 stackoverflow에서는 window.webkitURL을 사용하는데 experimental/deprecated API이기 때문에 window.URL로 변경! 출처: stackoverflow
2022. 3. 16.