:star2: 2515 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 1834 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
$.ajaxSetup({cache: false})
ajaxSetup
use is not recommended.)
$(document).ready(function() {
$.ajaxSetup({
cache: false
});
$("#quoteButton").on("click", function() {
$.getJSON("http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=", function(a) {
$("#quoteBox").html(a[0].content + "<p>— " + a[0].title + "</p>")
});
});
});
:warning: achudoz already gave khaduch points