Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function MyChange() {
var myString = document.getElementById("MyInput");
var myNum = parseInt(myString.value);
var myNum1 = "";
myNum1 = myNum.toFixed(2);
myString.value = myNum1;
}
</script>
</head>
<body>
put a number 1-9 <input type="text" id="MyInput" oninput="MyChange()">
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507