input

[JavaScript] 에서 CSV, Json 파일 읽는 방법 /* file load events */ function loadFile(sender) { // check file ext var validExts = new Array(".csv", ".json"); // Allow csv, json var fileExt = sender.value; fileExt = fileExt.substring(fileExt.lastIndexOf('.')); // If ext is not valid -> alert if (fileExt && validExts.indexOf(fileExt) < 0) { alert("Invalid file selected. valid files a..
· WEB/HTML
[HTML] input file 버튼 이미지로 변경 - Label에 이미지를 넣어주고, input 을 "display: none;" 해주면 된다. + 추가 파일 업로드 후 이벤트 처리 방법 var file = document.getElementById("file-input"); file.onchange = function(){ // ... };
S0PH1A
'input' 태그의 글 목록