i want to pass variable values into json below is what i am trying.
In javascript i am getting values like this:
var f_name= document.getElementById("firstname").value;
var phone_number= document.getElementById("number").value;
And then in JSON i want to pass these values:
"Site": {
"Name": "+f_name+",
"Phone": "+phone_number+"
}
its not working. What is wrong with this?