My Javascript File
function getValues_sft_r(val){
var numVal1=parseFloat(document.getElementById("sft_i").value);
var numVal2=(numVal1 / 5476);
document.getElementById("sft_r").value = math.floor(numVal2)
}
My HTML File Test Page
<script type="text/javascript" src="java.js"></script>
<style>
input.numbox{
width:30px;
height:20px;
}
input.mainbox{
width:30px;
height:20px;
font-size:30;
font-weight:bold;
}
</style>
Convert SQ.Ft. to Ropani :
<br/>
Sq.Ft.:
<input class="numbox" type="text" id="sft_i" value="0" onkeyup="getValues_sft_r(1)" />
Ropani:
<input style="mainbox" id="sft_r" value="">
</body>
</html>
I am not getting the Math.floor(numVal2)
value in my HTML document. How should I do it to get the value?