Browse Source

add log test

ming 3 years ago
parent
commit
1a52e4d113
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index2.html

+ 1 - 1
index2.html

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