I am trying to make a BMI Calculator using HTML. The inputs come from text fields. I am making some calculation with them in a Javascript function. I want to get the calculated values in a span like this:
<span id= class=>Your Calculation Results is = </span>
<span id= class=> I want the result here </span>
====================================================================
Edit : The part that i am asking about
<script language=javascript>
var bmi = document.getElementById(ID_bmiResult2).innerHTML;
bmi.value = weight / (heightInMeter * heightInMeter);
</script>
<body>
<span id=ID_bmiResult2> </span>
</body>
i don't know how to make it ...