I’m trying to do the random quotes generator with Ajax call.
Here is my pen: https://codepen.io/thiduck/pen/POoKKN?editors=0011#0
Unfortunately, It doesn’t work (The on click event works - but the AJAX call doesn’t look to be working).
Also, Why can’t I simply use $.getJSON? Why do I use this elaborate way of AJAX call.