title: Area calculation with four input fields using Jquery to convert Ropani-Anna to sq.ft
body: <p>I have four input fields.I want to convert ropani ,anna, paisa and dam to sq. ft. I'm unable to convert it .I want to calculate value of four input fields and want to display in another field. Please help me.</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>$(document).on("change", ".ropani", function() {
        var area = 0;
        $(‘.ropani’).on(‘keyup’, function() {
              var ropani = $(".ropani").val();
              var aana = $(".aana").val();
              var paisa = $(".paisa").val();
              var dam = $(".dam").val();
              area += ropani * 5476.0000;
              area += aana * 342.2500;
              area += paisa * 85.5625;
              // if (parseFloat(daam) &lt; 4) {
              area += daam * 21.390625;
              //s }
  
              $(“.total”).html(area);
            };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;input type=”text” class=”ropani” /&gt;
  &lt;input type=”text” class=”anna” /&gt;
  &lt;input type=”text” class=”paisa” /&gt;
  &lt;input type=”text” class=”dam” /&gt;
  &lt;input type=”text” class=”total” /&gt;</code></pre>
  </div>
  </div>
  </p>