ming 4 жил өмнө
parent
commit
16ebc131e6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      index2.html

+ 1 - 1
index2.html

@@ -133,7 +133,7 @@
       document.getElementById("mySidenav").style.width = "0";
     }
     function load_data(id){
-      var filtered = collection.filter(function (item) {
+      var filtered = loaded_data.filter(function (item) {
         return item.id === id;
       });
       alert(filtered.title);