Menu
function CountUnitValue()
{
var oTxt1 = document.getElementById(“OpenMarketValue”)
var oTxt2 = document.getElementById(“PropertySaiz”)
var oTxt3 = document.getElementById(“UnitValue”)
if(oTxt1.value != “” && oTxt2.value != “”)
{
oTxt3.value = oTxt1.value / oTxt2.value
var formatTxt3 = oTxt3.value
alert(formatTxt3.toFixed(2))
}
}
</script>
I want to round it up to 2 digit number.
Above is my code, why error happen when i “alert(formatTxt3.toFixed(2))” , but when i wrote alert(formatTxt3), no error.
formatNumber(formatTxt3, “0.00”) also not working . ??????