I just started to learn how to code websites just for fun. I am pretty OK with HMTL and CSS but I have a very hard time to understand JS.
As a learning project I am working on a simple units calculator. I am using a number input bar and I would like the users entry to be restricted to 2 digits after the decimal and the result display (same bar but from different function will also be restricted to 2 digits after the decimal).
I know many people asked this question here but i just couldn't make these examples work as I am new to this. If its possible I would like to ask your help.
Many thanks in advance.
This is the HTML:
<form action="" method="" name="vform">
<input type ="number" min="0" max="10000000"
placeholder="PEEM it!" value="" id="footbar" />
<div id="foot2">
<li class="foot" alt="foot" title="FOOT (ft)" onclick="runfoot()"><a
href=""></a></li>