Essentially my goal is to have the ajax call attached to a button
which I’ve successfully done, but now I need to store the data when the button is clicked as well.
I understand that ajax is asynchronous and I was wondering if there was a way around that?