title: Javascript Salary Calculator
body: <p>I am trying to make an annual salary calculator using Javascript. Here is what I have so far:</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-js lang-js prettyprint-override"><code>&lt;div id="fulldiv"&gt;
    &lt;p&gt; Enter the following information to calculate your annual salary.&lt;/p&gt;
       
    &lt;p&gt;Hourly Wage:
    &lt;input type="text" name="wage" id="txt_wage" value ="0.00"/&gt;&lt;/p&gt;
       
    &lt;p&gt;Hours Per Week:
    &lt;input type="text" name="hours" id="txt_hours" value= "0.0"/&gt; &lt;br/&gt;&lt;br/&gt;
    
    &lt;button value="calculate" onclick="calcSalary()"&gt;Calculate&lt;/button&gt;&lt;/p&gt;
    
    &lt;p id="results"&gt;&lt;/p&gt;
       
    &lt;script type="text/javascript"&gt;
    
    function calcSalary() {
    var wage_element = document.getElementById('txt_wage');
    var wage = parseInt(wage_element.value);
    var hours_element = document.getElementById('txt_hours');
    var hours = parseInt(hours_element.value);
    var calculate = wage_element * hours_element * 52;
    document.getElementByID('results').innerHTML = calculate;
    }
    &lt;/script&gt;
      
       
      
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I click the button, nothing happens. Any thoughts?</p>