JavaScriptWeb Languages and StandardsScripting Languages
Last Comment
Gurvinder Pal Singh
8/22/2022 - Mon
Gurvinder Pal Singh
are these variable values same that you are setting in your Ajax call, or you are receiving them as Ajax response?
jimmycdinata
ASKER
Both variables come from a different page. I want to initiate the variable in javascript before i make ajax call.
Gurvinder Pal Singh
what do you mean by 'different page'?
if you are able to use the value in Ajax call, there is no reason that you can't put that in a javascript variable.
Just tell me from where you are getting these values and in what format (which line of code?).