title: Change value of input onchange?
body: <p>I am trying to create a simple JavaScript function. When someone inserts a number in an <code>input</code> field, the value of another field should change to that value. Here is what I have at the moment:</p>
  <pre><code>function updateInput(ish) {  
      fieldname.value = ish;  
  }  
  &lt;input type=&quot;text&quot; name=&quot;fieldname&quot; id=&quot;fieldname&quot; /&gt;  
  &lt;input type=&quot;text&quot; name=&quot;thingy&quot; onchange=&quot;updateInput(value)&quot; /&gt; 
  </code></pre>
  <p>Somehow this does not work, can someone help me out?</p>