SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id = "poland" style = "background-color:#cc0;">
  2.          Json
  3.          </div>
  4.        
  5.          <input type = "button" id = "json" value = "Load Data" />
  6.  
  7.         <script>
  8.             $(document).ready(function() {
  9.             $("#json").click(function(event){
  10.                $.getJSON('poland.json', function(jd) {
  11.                   $('#poland').html('<p> Name: ' + jd.name.official + '</p>');
  12.                });
  13.             });    
  14.          });
  15.         </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top