Always get the same quote, what am I doing wrong?

Always get the same quote, what am I doing wrong?
0

#1

Please disregard the design, I’m trying to get the JS to work first. I tried to implement the “New Quote”-button in two different ways but after I click on any of the two buttons once I don’t get any new quotes. Can anybody please tell me what’s wrong here?


#2

After
var api = ...
add
$.ajaxSetup({ cache: false });


#3

Ah, that is indeed the right solution. I was thinking about adding this to the url: ?random=" + Math.random(0,1).