I am working on project where I am trying to generate quote form api. Here is my syntax,
$("#btn").on("click",function(){
$.getJSON("https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1",function(a){
$("#display").append(a[0].content);
})
})
the problem I am facing is that I am not getting a new json return each time I am clicking the button, instead the same quote is generated. How can I fix that?