title: Change text with jquery and get request
body: <p>What is wrong with my javascript/jquery code?</p>
  
  <pre><code>&lt;%= link_to 'Click', '#', id: 'link' %&gt;&lt;span id="new-data"&gt;&lt;/span&gt;
  
  
  &lt;script type="text/javascript" charset="utf-8"&gt;
    $("#link").click(function(){
      $.get('http://httpbin.org/get', { name: "John", time: "2pm" }).done(function(data) {
              $("#new-data").text(data);
  });
  });
  &lt;/script&gt;
  </code></pre>