Question
need help adding a javascript var to a form url
Hi all,
I need help adding a javascript var to a form url.
So the form url is like:
"url": "https://mypage/info/230",
but I want to replace the number 230 with var MyNum like:
var MyNum = 230;
"url": "https://localhost/mypage/info/" + MyNum + "\"",
but it doesn't seem to work
Is there a better way to write it?
var settings = {
"async": true,
"url": "https://localhost/mypage/info/230",
"method": "Post",
more stuff.....
}
