combine multi-field html inputs into one argument and pass to javascript
<p>Trying to work this out, and I've hit a wall.  I'm trying to have html pass the input of multiple fields, which combined equal one string, onto a javascript function.  I started laying it out....then realized I was unsure where to go.  Here is what I have so far.</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
  &lt;script src="http://cdn.jsdelivr.net/particle-api-js/5/particle.min.js" type=
    "text/javascript" type="text/javascript" charset="utf-8"&gt;  &lt;/script&gt;
&lt;body&gt;

    &lt;p&gt;
    Pump No:&lt;input type="text" id="channel" value="" size="5"&gt;
    Time ON:&lt;input type="text" id="onTime" value="" size="8"&gt;
    Number of Doses:&lt;input type="text" id="numberOfDoses" value="" size="5"&gt;
    Total Dose:&lt;input type="text" id="totalDose" value="" size="5"&gt;
    &lt;button onclick="setupChannel()"&gt;SET&lt;/button&gt;
    &lt;/p&gt;
</code></pre>

<p><strong>Javascript</strong></p>

<pre><code>&lt;script type="text/javascript"&gt;
      var particle = new Particle();
      var deviceID    = "35002400094734343231xxxx";
      var accessToken = "3aaacdf9121d404c1a60d5f5f853585c156axxxx";
      var fnName = setupChannel;

      function setupChannel(name, argument) {
        var newValue = document.getElementById().value;
        var fnPr = particle.callFunction({
        deviceId: deviceID, name: fnName,argument: fnArg,auth: accessToken
    });
    fnPr.then(function(data) {
        console.log('Function called succesfully:', data);
    }, function(err) {
        console.log('An error occurred:', err);
    });
}
       &lt;/script&gt;
</code></pre>