title: School assignment onChange
body: <p>I have a small problem that hopefully someone can help with. I am a student in a Web Programming Class, the instructor has given the assignment to: Add an "onChange" event handler to the shipping field in the form to run the "shipping_price()" function whenever the user changes the selected shipping method.</p>
  
  <p>Here is the code he offered:</p>
  
  <pre><code>&lt;td colspan="3" align="right"&gt;&lt;span class="fmlabel"&gt;Shipping:&lt;/span&gt;
    &lt;select name="shipping"&gt;
       &lt;option value="0"&gt;Select a Shipping Method
       &lt;option value="7.95"&gt;3-5 days ($7.95)
       &lt;option value="9.95"&gt;2 days ($9.95)
       &lt;option value="12.95"&gt;Next Day ($12.95)
    &lt;/select&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>What I put here is all the information he gave for this part of the assignment, any help would be great.</p>
  
  <p>Edit:</p>
  
  <p>I took the suggested help and put this in:</p>
  
  <pre><code> function shipping_price()
      {
      var ship=document.getElementById("shipping");
      document.order.total.value=(shipping+sub_total);
  }
  
   &lt;tr&gt;
      &lt;td colspan="3" align="right"&gt;&lt;span class="fmlabel"&gt;Shipping:&lt;/span&gt;
         &lt;select name="shipping" onChange="shipping_price"&gt;
            &lt;option value="0"&gt;Select a Shipping Method
            &lt;option value="7.95"&gt;3-5 days ($7.95)
            &lt;option value="9.95"&gt;2 days ($9.95)
            &lt;option value="12.95"&gt;Next Day ($12.95)
         &lt;/select&gt;
      &lt;/td&gt;
      &lt;td&gt;&lt;input class="numbers" name="sub8" id="sub8" size="7" value="0.00" disabled&gt;&lt;/td&gt;
   &lt;/tr&gt;
  </code></pre>
  
  <p>This works if I change the value of the shipping field, but will not put the "option value=" into the shipping field.</p>