title: Trying to get JSON with jQuery
body: <p>I'm trying to get the JSON with that example from <a href="http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_getjson" rel="nofollow">www.w3schools.com</a></p>
  
  <p>I just edit de url JSON to "<a href="http://www.w3schools.com/jquery/demo_ajax_json.js" rel="nofollow">http://www.w3schools.com/jquery/demo_ajax_json.js</a>"</p>
  
  <p>I copied that into my desktop index.html and it doesn't works in local machine. I tried upload it to my web and it doesnt works... Can you help me please?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){
    $("button").click(function(){
      $.getJSON("http://www.w3schools.com/jquery/demo_ajax_json.js",function(result){
        $.each(result, function(i, field){
          $("div").append(field + " ");
        });
      });
    });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;button&gt;Get JSON data&lt;/button&gt;
  &lt;div&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>