Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id = "poland" style = "background-color:#cc0;">
- Json
- </div>
- <input type = "button" id = "json" value = "Load Data" />
- <script>
- $(document).ready(function() {
- $("#json").click(function(event){
- $.getJSON('poland.json', function(jd) {
- $('#poland').html('<p> Name: ' + jd.name.official + '</p>');
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement