Convert Height(Centimeter) to Feet'inches using Javascript
<p>Hi Everyone I am Calculating BMI using height and weight it's working fine but I want to convert entered height(centimeter) in Feet'inches</p>

<p><strong>HTML</strong></p>

<pre class="lang-html prettyprint-override"><code>//height in Centimeter
&lt;input type="number" onblur="myFunction()" min="0" name="height" id=height_' + len + ' class="txtInput2 personalize-form box-width" required/&gt;

 //Weight
&lt;input type="number" onblur="myFunction()" min="0" name="weight" id=weight_' + len + ' class="txtInput4 personalize-form box-width" required/&gt;
</code></pre>

<p><strong>Javascript</strong></p>

<pre><code>function myFunction(){
  var height = document.getElementById("height_1").value;
  var weight = document.getElementById("weight_1").value;

  if(weight &gt; 0 &amp;&amp; height &gt; 0){ 
   var finalBmi = weight/(height/100*height/100)
     document.bmiForm.bmi.value = finalBmi
   if(finalBmi &lt; 18.5){
    var health= document.bmiForm.meaning.value = "UW"
   }

   if(finalBmi &gt; 18.5 &amp;&amp; finalBmi &lt; 25){
       var health1= document.bmiForm.meaning.value = "IW"
       alert(health1);
     }
   if(finalBmi &gt; 25){
     var health2= document.bmiForm.meaning.value = "OW"
      alert(health2);
    }
  }
else{
  //alert("Please Fill in everything correctly")
 } 
}
</code></pre>