I have the following function call
setVal("' + key + ',' + addressid + '")
Note how I am trying to pass in 2 values, key and address id.
I have the actual function as below:
function setVal(key, addressid) {
}
when I check the value of key in the SetVal function, I get key = the value of hcpkey + ',' + addressid.
The value of addressid is undefined although it does have a value. Am I doing something wronge in how I am passing the value?