call ajax and put result - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

call ajax and put result

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> 
      <script lang="javascript">$(document).ready(function () {
$.get("https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=BTC,USD,EUR,GBP", function(data) {
  console.log(JSON.stringify(data))
})
}) /*w w w.  ja v a2s .co m*/
      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials