Javascript change input field to 2 decimal place while entering the digits
<p>I didn't study javascript before and I have been searching for this codes for quite awhile. </p>

<ul>
<li>Input 1: 2 Output => 2.00</li>
<li>Input 2: 5 Output => 2.50</li>
<li>Input 3: 2 Output => 2.52</li>
</ul>

<p>Input Field:</p>

<pre><code>&lt;input id="decimal" type="text" style="width:60px" name="formula_1_percentage" value="&lt;?php echo $_SESSION['formula_1_percentage'] ;?&gt;"/&gt;%
</code></pre>
