I have a piece of javascript:
$.getJSON("something.json",function whatever(data)
Instead of putting something.json
in the same folder as the javascript, I would like to move it one up in the directory structure.
How should I change the code to recognize the new location?
The same way as for any other relative URI.
../something.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With