title: submitting and calculating
body: <p>Html</p>
  
  <p>`</p>
  
  <pre><code> &lt;fieldset id="persoon"&gt;
    &lt;legend&gt;mijn gegevens&lt;/legend&gt;
   &lt;table&gt;
  
  
  
  &lt;tbody&gt;&lt;tr&gt;
   &lt;td&gt;
    &lt;label for="bg"&gt;Auto gebruik   1 op&lt;/label&gt;
    &lt;/td&gt;
    &lt;td&gt;
     &lt;input id="bg" name="bg" size="30" type="number" placeholder="Benzine gebruik?"&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  
  &lt;tr&gt;
    &lt;td&gt;
     &lt;label for="kilometer"&gt;kilometer per jaar&lt;/label&gt;
     &lt;/td&gt;
     &lt;td&gt;
       &lt;input id="kilometer" z="" name="kilometer" size="30" type="number" placeholder="ex: 120000 km/pj"&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
      &lt;label for="benzine"&gt;prijs benzine &lt;/label&gt;
      &lt;/td&gt;
      &lt;td&gt;
      &lt;input id="benzine" name="benzine" size="30" type="number"&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;
    &lt;input id="submit" type="submit" value="bereken"&gt; &lt;/td&gt;&lt;td&gt;
    &lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
      &lt;label for="berekening"&gt;Besparing &lt;/label&gt;
      &lt;/td&gt;
      &lt;td&gt;
      &lt;input id="berekening" name="berekening" size="30" type="number"&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>
  
  <p>
  
  `            </p>
  
  <p>Javascript/Jquery</p>
  
  <pre><code>$('#submit').click(function(evt) {
  evt.preventDefault(); // this will prevent the form from being submitted
  var bg = parseFloat($('#bg').val());  // parseFloat for floating point
  var bf = parseFloat($('#kilometer').val());
  var bd = $('bf').val($('bf').val() + $('bf').val() / bg);
  var bz = parseFloat($('#benzine').val());
  var total = bz * bd ;
  total = total.toFixed(2);
  
  });
  </code></pre>
  
  <p>ok so what i'm trying to accomplish is that someone fills in the form:</p>
  
  <pre><code>  1: howmany kilometers on 1 liter gas
    2: howmany kilometers you drive a year
    3: howmuch the gas costs
           submit
    4:calculation
  </code></pre>
  
  <p>after someone has entered their stuff, you press "bereken" and it should calculate everything and put it in the "besparing" input field, but it's not working and i can't find anyone to help me personaly.</p>
  
  <p>I am very new to this</p>