I\'m trying to use variable in AJAX call in jquery but it is not working. move variable contains different values. Please check the following code:
var $move
I was looking for something like this. I wanted to have a variable for the key AND a variable for the value.
let dataPair = {}; dataPair[dataKey] = dataValue; $.ajax({ url: TheAPIPath, data: dataPair, method: "GET", (etc)