title: Change an HTML table's values when a dropdown is changed
body: <p>How can I make my HTML table update when someone changes a dropdown to a different value? </p>
  
  <p>I have a pricing table for domain name registrations and I want the user to be able to select how many years they would like to register a domain name from a drop down and the table's prices update.</p>
  
  <p>Any resources or suggestions is greatly appreciated!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="domain-pricing-block"&gt;
   &lt;div class="container"&gt;
    &lt;div class="domain-pricing-head"&gt;
     &lt;h3&gt;Domain Pricing&lt;/h3&gt;
     &lt;p&gt;Includes DNS Management and Domain Forwarding&lt;/p&gt;
    &lt;/div&gt;&lt;!--domain-pricing-head--&gt;
    &lt;div class="domain-pricing-table"&gt;
     &lt;div class="table-responsive"&gt;
      &lt;div class="table"&gt;
       &lt;table class="table"&gt;
        &lt;tr&gt;
         &lt;th&gt;TLD&lt;/th&gt;
         &lt;th&gt;Register&lt;/th&gt;
         &lt;th&gt;Transfer&lt;/th&gt;
         &lt;th&gt;Renew&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td&gt;.com&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td&gt;.net&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td&gt;.org&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td&gt;.biz&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
         &lt;td&gt;$14.95 USD&lt;/td&gt;
        &lt;/tr&gt;
       &lt;/table&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/div&gt;&lt;!--domain-pricing-table--&gt;
    &lt;div class="domain-price-type"&gt;
     &lt;ul&gt;
      &lt;li&gt;
       &lt;label&gt;Registration Period:&lt;/label&gt;
       &lt;div class="box"&gt;
        &lt;select class="wide"&gt;
         &lt;option value="1"&gt;1 Year&lt;/option&gt;
         &lt;option value="2"&gt;2 Years&lt;/option&gt;
         &lt;option value="3"&gt;3 Years&lt;/option&gt;
         &lt;option value="4"&gt;4 Years&lt;/option&gt;
        &lt;/select&gt;
       &lt;/div&gt;&lt;!--domain-ext--&gt;
      &lt;/li&gt;
      &lt;li&gt;
       &lt;input type="button" class="dom-go" value="Go"&gt;
      &lt;/li&gt;
     &lt;/ul&gt;
    &lt;/div&gt;&lt;!--domain-price-type--&gt;
   &lt;/div&gt;
  &lt;/div&gt;&lt;!--domain-pricing-block--&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've provided a screenshot of the table as well:</p>
  
  <p><img src="https://i.stack.imgur.com/ie7B8.png" alt="View Screenshot of Table"> </p>