소스 검색

add log test

ming 3 년 전
부모
커밋
1a52e4d113
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      index2.html

+ 1 - 1
index2.html

@@ -132,7 +132,7 @@
       var title = document.getElementById("title")
       var title = document.getElementById("title")
       tid = event.srcElement.id
       tid = event.srcElement.id
       console.log(tid);
       console.log(tid);
-      title.innerHTML = loaded_data.find(item => item.id == tid).name
+      $(".title_new").val(loaded_data.find(item => item.id == tid).name)
       var step;
       var step;
       for (step = 1; step <= 10; step++) {
       for (step = 1; step <= 10; step++) {
         $(".txtsrc"+step).val(loaded_data.find(item => item.id == tid).text_content[step-1]) 
         $(".txtsrc"+step).val(loaded_data.find(item => item.id == tid).text_content[step-1])