title: Javascript return two values in onchange function
body: <p>I need to return two values in a text input.  Here's what I'm trying:</p>
  
  <pre><code>&lt;input type="text" size="2" name="disOrd[&lt;? echo $usersArray[$x]['id']; ?&gt;]" 
  value="&lt;? echo $usersArray[$x]['disOrd']; ?&gt;" 
  onchange="updateAgentOrder(this.name,this.value)" /&gt;
  </code></pre>
  
  <p>It only returns the first one, not the second one.  Is this even possible to do?  I absolutely need both.</p>
  
  <p>Here's what updateAgentOrder does, just a temporary deal to get the values:</p>
  
  <pre><code>function updateAgentOrder(x,y){
  alert(x,y);
  }
  </code></pre>
  
  <p>If I change the order of this.name and this.value, it will only show the first one.</p>