title: How to access API Response through button click
body: <p>I need to access a Public Quote JSON API and display the content in my HTML page, I had little understanding of JQuery Ajax method. But my code is not able to pull the data into HTML. Please Explain the bug with my Code</p>
  
  <pre><code>$(".btn-primary").on("click",function(){
      $.ajax({
         type:"GET",
         url:"http://quotesondesign.com/wp-json/posts?
        filter[orderby]=rand",
         success:function(data){
          var post = data.shift(); 
          $("#quote").html(post.content);
        }
     });
  });
  </code></pre>