how to add automatic decimel for a number in input field while typing
<p>im trying to make input that automaticaly change to decimel while typing number but fixed with 2 decimel point only. please help me , because im still new with jquery</p>

<p>my code :</p>

<pre><code> $.fn.billFormat = function() {
        $(this).keyup( function( e ){
                if( isNaN(parseFloat(this.value )) ) return;
                this.value = parseFloat(this.value).toFixed(2);
        });
        return this; 
 }

$('#ENQUIRY_PREPAIDBILL .bill_issued').billFormat();
</code></pre>

<p>i want the output to be like this</p>

<p>0.00 &lt;------ default value<br>
0.01 &lt;------ typing 1<br>
0.10 &lt;------ typing 0<br>
1.00 &lt;------ typing 0</p>
