get JSON result - Javascript jQuery

Javascript examples for jQuery:Json

Description

get JSON result

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
  <link rel="stylesheet" type="text/css" href="http:///ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css"> 
  <script type="text/javascript">
    $(window).load(function(){/*from  ww w.ja v  a2 s. co  m*/
var data = {"1":"order1","2":"order2","3":"order3"}
    console.log(data['1']);
    });

      </script> 
 </head> 
 <body>  
 </body>
</html>

Related Tutorials