I currently have a variable defined like this:
var myip;
I need to include this variable in the following URL:
$.ajax('http://api.ipstack.com/**[myip]**?access_key=mykey')
Manually replacing [myip] with my IP address works fine, but I am looking for a way to automate this process.
I have tried the solutions provided here, but they did not work for me.
Thank you for taking the time to read through and offer your assistance!