javascript - passing multiple values
<p>I have the following function call </p>

<pre><code>    setVal("' + key + ',' + addressid + '")
</code></pre>

<p>Note how I am trying to pass in 2 values, key and address id.</p>

<p>I have the actual function as below:</p>

<pre><code>    function setVal(key, addressid) {

    }
</code></pre>

<p>when I check the value of key in the SetVal function, I get key = the value of hcpkey + ',' + addressid.</p>

<p>The value of addressid is undefined although it does have a value. Am I doing something wronge in how I am passing the value? </p>
