title: How to calculate percentage and show in third textbox?
body: <p>In <code>mypercenttextbox</code> I need to put whatever percent value when
   <code>(myfirstnumber/ 100)  mysecondnumber;</code></p>
  
  <pre class="lang-html prettyprint-override"><code>myfirstnumber
  &lt;input type="number" value="F" class="1" id="myfirstnumber"/&gt;
  
  mysecondnumber
  &lt;input type="number" value="S" class="1" id="mysecondnumber"/&gt;
  
  &lt;input type="percentage" value="P" class="1" id="mypercenttextbox "&gt;
  </code></pre>
  
  <p>I am trying to do this with jQuery :</p>
  
  <pre><code>function ShowPercentage() {
      var FirstNumID = $("[id$=" + "myfirstnumber").attr("id");
      var FirstNumVal = $("#" + myfirstnumber).val();
  
      var SecondNumID = $("[id$=" + "mysecondnumber").attr("id");
      var SecondNumVal = $("#" + mysecondnumber).val();
  
      var percentVal = (myfirstnumber - mysecondnumber) * (100 / mysecondnumber);
  
      $("[id$=" + "mypercenttextbox ").val(percentVal);
  }
  </code></pre>
  
  <p>In the code here-above, I am able to get percentage in, but I'm getting it as eg. <code>9.09090909090909</code> whereas I want to show like <code>10%</code>.</p>
  
  <p>Any help would be appreciated!</p>