Here is the script to load json array- <head> <title> Page Title </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" ></script> </head> <body> <div id= "images" > test </div> </body> var dictionary = [ { "id" : "0" , "name" : "ABC" }, { "id" : "1" , "name" : "DEF" } , { "id" : "2" , "name" : "PQR" }, { "id" : "3" , "name" : "xyz" , "name2" : "xyz2" } ]; $( function (){ for ( var ke in dictionary ) { if (dictionary.hasOwnProperty(ke)) { var id = dictionary [ke].id; var name = dictionary [ke].name; //create a anchor element using id. //when
Learn Tips and tricks, Concepts, Ideas for software development