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

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?

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


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