title: Get value with JQuery in gravity form
body: <p>I'm trying to add a formula to my gravity form (WordPress) which includes exponent.i cant use the build in calculator since there is no exponent function.
  its basically a loan calculator where.</p>
  
  <p>r=rate        ;(form_id=4)/12 </p>
  
  <p>p=loan amount ;(form_id=1)</p>
  
  <p>D=duration    ;(form_id=2, [drop down menu]) * 12</p>
  
  <p>X=p(r/1-(1+r)^-D)</p>
  
  <p>X= repayment</p>
  
  <p>Now I get the r, p and D from the form in form of drop down and written numbers.</p>
  
  <p>so far I've put a HTML box and inserted this code in it :</p>
  
  <pre><code>&lt;script&gt;
  gform.addFilter( 'gform_calculation_result', function(result, formulaField, formId, calcObj ){    
  if ( formulaField.field_id == "2" ) {
      result = /****/;
  }
  return result;
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I don't have any programming bg and I got it from a support team member.</p>
  
  <p>What I understand is that this code will replace the calculation of field_id 2 (which is showing the X=[monthly repayment] with the result of my formula -> "/****/"</p>
  
  <p>But i have to write the formula and i don't know how to get the values from the form with jQuery and put them in the formula.</p>
  
  <p>I found out JavaScript math functions from W3school and another website so i don't have problem with writing the formula i just need help with jQuery to get the value.</p>
  
  <p>I was wondering if someone can help me with that?</p>